Skip to content

Commit

Permalink
Fix incorrect is methods in user voice state events
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleyannelli authored and felldo committed Apr 2, 2024
1 parent 420a370 commit e3f3bc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ public UserChangeDeafenedEventImpl(Member newMember, Member oldMember) {

@Override
public boolean isNewDeafened() {
// TODO This is wrong.
return newMember.isSelfDeafened();
return newMember.isDeafened();
}

@Override
public boolean isOldDeafened() {
return oldMember.isSelfDeafened();
return oldMember.isDeafened();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ public UserChangeMutedEventImpl(Member newMember, Member oldMember) {

@Override
public boolean isNewMuted() {
return newMember.getServer().isSelfMuted(newMember.getUser());
return newMember.isMuted();
}

@Override
public boolean isOldMuted() {
return !isNewMuted();
return oldMember.isMuted();
}
}

0 comments on commit e3f3bc2

Please sign in to comment.