diff options
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x] | cogs/admin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index 8f100c1..670ab34 100755..100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -97,5 +97,11 @@ class Admin(commands.Cog): await ctx.voice_client.disconnect() await ctx.send(f"Left channel {ctx.author.voice.channel.name}") + @commands.command() + @commands.check(is_mod) + async def clear(self, ctx, number): + await ctx.message.channel.purge(limit=int(number), check=None, before=None, after=None, around=None, oldest_first=False, bulk=True) + + def setup(bot): bot.add_cog(Admin(bot)) |