Add checks to new commands

Mod or Manage Channels perm needed to use these commands
This commit is contained in:
James
2018-10-27 08:42:53 +13:00
committed by GitHub
parent 9f59acd5e2
commit 77e143658d

View File

@@ -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):
"""