limit use to administrators only

This commit is contained in:
xenofem 2021-06-06 14:25:06 -04:00
parent 83e4d4f9f1
commit 5581b4cb82

3
bot.py
View file

@ -16,6 +16,9 @@ async def on_message(message):
return
if not (client.user in message.mentions or [client.user] in [role.members for role in message.role_mentions]):
return
if not message.author.guild_permissions.administrator:
await message.channel.send('Only administrators can request channel logs!')
return
await message.channel.send('generating channel archive...')