added delete api call for unlink cmd

This commit is contained in:
Corban-Lee Jones 2024-02-21 23:45:57 +00:00
parent de1f16549c
commit 9a2da70e38

View File

@ -207,6 +207,9 @@ class FeedCog(commands.Cog):
try:
async with aiohttp.ClientSession() as session:
api = API(self.bot.api_token, session)
# data = await api.get_subscription(uuid=uuid)
await api.delete_subscription_channel(uuid=uuid)
# sub_channel = await SubscriptionChannel.from_dict(data)
except Exception as exc:
return await (
@ -216,7 +219,7 @@ class FeedCog(commands.Cog):
)
await (
Followup("Unlinked!")
Followup("Subscription unlinked!", uuid)
.added()
.send(inter)
)