Cleanup is only allowed in the test channel
This commit is contained in:
parent
64f498d229
commit
9c97460ff2
@ -80,7 +80,7 @@ async def on_message(message):
|
||||
)
|
||||
|
||||
if message.content.startswith('!cleanup'):
|
||||
if not role_check.cleanup_permissions(message.author.roles):
|
||||
if not role_check.cleanup_permissions(message.author.roles) or message.channel.id != '339510341459247106':
|
||||
await client.send_message(message.channel, 'You cant do that')
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user