Skip to content

Commit

Permalink
sticky roles patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AsianIntel committed Nov 29, 2024
1 parent 503b868 commit a9aa616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rowifi_core/src/user/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl UpdateUser<'_> {
added_roles.push(*bind_role);
}
} else {
if self.member.roles.contains(bind_role) {
if self.member.roles.contains(bind_role) && !self.guild.sticky_roles.contains(bind_role) {
removed_roles.push(*bind_role);
}
}
Expand Down

0 comments on commit a9aa616

Please sign in to comment.