Fixed realm group #481

This commit is contained in:
Sven Heidemann 2025-01-07 16:40:26 +01:00
parent 405055edf5
commit 352ede1667

View File

@ -366,7 +366,9 @@ class RealmGroup(DiscordCommandABC):
)
return
if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id):
if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(
ctx.author.id, realm.id
):
await self._message_service.send_ctx_msg(
ctx,
self._t.transform("modules.realm.error.not_moderator").format(realm.name),
@ -408,7 +410,9 @@ class RealmGroup(DiscordCommandABC):
)
return
if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id):
if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(
ctx.author.id, realm.id
):
await self._message_service.send_ctx_msg(
ctx,
self._t.transform("modules.realm.error.not_moderator").format(realm.name),