limit use to administrators only
This commit is contained in:
parent
83e4d4f9f1
commit
5581b4cb82
3
bot.py
3
bot.py
|
@ -16,6 +16,9 @@ async def on_message(message):
|
||||||
return
|
return
|
||||||
if not (client.user in message.mentions or [client.user] in [role.members for role in message.role_mentions]):
|
if not (client.user in message.mentions or [client.user] in [role.members for role in message.role_mentions]):
|
||||||
return
|
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...')
|
await message.channel.send('generating channel archive...')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue