From e390f7801cdd566924bb03d4fa0412bac4e70425 Mon Sep 17 00:00:00 2001 From: DocileSphinx <100319472+DocileSphinx@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:42:10 +0100 Subject: [PATCH] Update impersonation.py --- cogs/impersonation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/impersonation.py b/cogs/impersonation.py index 3198ab6..3a239c2 100644 --- a/cogs/impersonation.py +++ b/cogs/impersonation.py @@ -137,9 +137,13 @@ async def gold(self, ctx: commands.Context): await webhook.send(embed=embed, avatar_url=ctx.author.display_avatar.url, username=ctx.author.name) await session.close() + @commands.command() + async def delwebhook(self, ctx: commands.Context): + await WebhookManager.remove(self.webhooks, ctx.channel) + def setup(bot: commands.Bot): bot.add_cog(Impersonation(bot=bot, messages=MessageManager(bot.database, **bot.config["Chain"]), webhooks=WebhookManager(bot.database), blacklist=bot.database.blacklist - )) \ No newline at end of file + ))