From 3c21b68b0c70edc7e406e7fddcf319c0fab64893 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 3 Feb 2024 19:21:13 +0100 Subject: [PATCH] Check user update username --- .../events/short_role_name_on_member_update_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/modules/short_role_name/events/short_role_name_on_member_update_event.py b/bot/src/modules/short_role_name/events/short_role_name_on_member_update_event.py index 92b9a08e..1c4a1525 100644 --- a/bot/src/modules/short_role_name/events/short_role_name_on_member_update_event.py +++ b/bot/src/modules/short_role_name/events/short_role_name_on_member_update_event.py @@ -12,5 +12,5 @@ class ShortRoleNameOnMemberUpdateEvent(OnMemberUpdateABC): @EventChecks.check_is_ready 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)