mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
Fix the tracking of nicks that were set just before nick reset (#4830)
This commit is contained in:
parent
d45a02166d
commit
be00a59ab3
@ -176,7 +176,7 @@ class Events(MixinMeta):
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_member_update(self, before: discord.Member, after: discord.Member):
|
||||
if before.nick != after.nick and after.nick is not None:
|
||||
if before.nick != after.nick and before.nick is not None:
|
||||
guild = after.guild
|
||||
if (not guild) or await self.bot.cog_disabled_in_guild(self, guild):
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user