added delete api call for unlink cmd
This commit is contained in:
parent
de1f16549c
commit
9a2da70e38
@ -207,6 +207,9 @@ class FeedCog(commands.Cog):
|
|||||||
try:
|
try:
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
api = API(self.bot.api_token, 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:
|
except Exception as exc:
|
||||||
return await (
|
return await (
|
||||||
@ -216,7 +219,7 @@ class FeedCog(commands.Cog):
|
|||||||
)
|
)
|
||||||
|
|
||||||
await (
|
await (
|
||||||
Followup("Unlinked!")
|
Followup("Subscription unlinked!", uuid)
|
||||||
.added()
|
.added()
|
||||||
.send(inter)
|
.send(inter)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user