limit use to administrators only

main
xenofem 2021-06-06 14:25:06 -04:00
parent 83e4d4f9f1
commit 5581b4cb82
1 changed files with 3 additions and 0 deletions

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...')