diff --git a/bot.py b/bot.py index affbbe8..ad7525d 100644 --- a/bot.py +++ b/bot.py @@ -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...')