Check user update username
Some checks failed
Deploy staging on push / build-web (push) Blocked by required conditions
Deploy staging on push / deploy (push) Blocked by required conditions
Deploy staging on push / pre-build (push) Successful in 2s
Deploy staging on push / build-bot (push) Has been cancelled

This commit is contained in:
Sven Heidemann 2024-02-03 19:21:13 +01:00
parent 0a18f26a51
commit 139abbf489

View File

@ -12,5 +12,5 @@ class ShortRoleNameOnMemberUpdateEvent(OnMemberUpdateABC):
@EventChecks.check_is_ready @EventChecks.check_is_ready
async def on_member_update(self, before: discord.member.Member, after: discord.member.Member): async def on_member_update(self, before: discord.member.Member, after: discord.member.Member):
if before.roles != after.roles or before.name != after.name: if before.roles != after.roles or before.name != after.name or before.display_name != after.display_name:
await self._service.check_short_role_names(after) await self._service.check_short_role_names(after)