Skip to content

Commit

Permalink
fix: Unset Permissions before setting them
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXorog committed Jul 13, 2023
1 parent ee473d7 commit c014557
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public DiscordOverwriteBuilder()
/// <returns>This builder.</returns>
public DiscordOverwriteBuilder Allow(Permissions permission)
{
this.Remove(permission);
this.Allowed |= permission;
return this;
}
Expand All @@ -124,6 +125,7 @@ public DiscordOverwriteBuilder Allow(Permissions permission)
/// <returns>This builder.</returns>
public DiscordOverwriteBuilder Deny(Permissions permission)
{
this.Remove(permission);
this.Denied |= permission;
return this;
}
Expand Down

0 comments on commit c014557

Please sign in to comment.