forked from sh-edraft.de/sh_discord_bot
Added is admin check to level edit #103
This commit is contained in:
parent
50fbc3eb8c
commit
c70149e9c8
@ -205,6 +205,11 @@ class LevelGroup(DiscordCommandABC):
|
||||
return
|
||||
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
|
||||
|
||||
if ctx.guild is None:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user