Added is admin check to level create
This commit is contained in:
parent
b30d49f5d7
commit
b4fce51b57
@ -122,6 +122,11 @@ class LevelGroup(DiscordCommandABC):
|
|||||||
return
|
return
|
||||||
self._client_utils.received_command(ctx.guild.id)
|
self._client_utils.received_command(ctx.guild.id)
|
||||||
|
|
||||||
|
if not self._permissions.is_member_admin(ctx.author):
|
||||||
|
await self._message_service.send_ctx_msg(ctx, self._t.transform('common.no_permission_message'))
|
||||||
|
self._logger.trace(__name__, f'Finished command level remove')
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
color = hex(discord.Colour.from_str(color).value)
|
color = hex(discord.Colour.from_str(color).value)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user