Only administrators can register channels
This commit is contained in:
parent
d1656dcc45
commit
36b31989c4
|
|
@ -74,6 +74,9 @@ class VocalMaisBot(discord.Client):
|
|||
except ValueError:
|
||||
return await message.channel.send(f":x: {channel_id} can not be converted to number")
|
||||
|
||||
if not message.author.guild_permissions.administrator:
|
||||
return await message.channel.send(f":dragon_face: Only an administrator can control me!")
|
||||
|
||||
# Retrieving the channel
|
||||
channel = self.get_channel(channel_id)
|
||||
if channel is None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue