From 77e143658d0217c5252e3b290c72c2e5e9fa2733 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 27 Oct 2018 08:42:53 +1300 Subject: [PATCH] Add checks to new commands Mod or Manage Channels perm needed to use these commands --- tools/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/tools.py b/tools/tools.py index 9c1349f..db97ebc 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -360,6 +360,7 @@ class Tools(BaseCog): await awaiter.edit(embed=embed) @commands.command(name='listguilds', aliases=['listservers', 'guildlist', 'serverlist']) + @checks.mod_or_permissions() async def listguilds(self, ctx): """ List the guilds|servers the bot is in @@ -380,7 +381,8 @@ class Tools(BaseCog): for page in cf.pagify(final, delims=['\n'], shorten_by=16): await ctx.send(asciidoc(page)) - + @commands.guild_only() + @checks.mod_or_permissions(manage_channels=True) @commands.command(name='listchannels', aliases=['channellist']) async def listchannels(self, ctx): """