Skip to content

Commit

Permalink
[ExtendedModLog] Fix an issue where voice state updates were not gett…
Browse files Browse the repository at this point in the history
…ing the moderator correctly when deafened/muted states were removed.
  • Loading branch information
TrustyJAID committed Aug 11, 2024
1 parent d1b5ffb commit b8801fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extendedmodlog/eventmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ async def on_voice_state_update(
if channel.permissions_for(guild.me).view_audit_log and change_type:
action = discord.AuditLogAction.member_update
entry = await self.get_audit_log_entry(guild, member, action)
if entry and getattr(entry.after, change_type, None):
if entry and getattr(entry.after, change_type, None) is not None:
perp = getattr(entry, "user", None)
reason = getattr(entry, "reason", None)
if perp:
Expand Down

0 comments on commit b8801fb

Please sign in to comment.