Skip to content

Commit

Permalink
fix(popular-topics): typo (discordjs#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Human authored Oct 11, 2021
1 parent fc64c63 commit 8bdd32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/popular-topics/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ console.log(permissions.has(Permissions.FLAGS.KICK_MEMBERS));

permissions.remove(Permissions.FLAGS.KICK_MEMBERS);
console.log(permissions.has(Permissions.FLAGS.KICK_MEMBERS));
// output : false
// output: false
```

You can utilize these methods to adapt permissions or overwrites without touching the other flags. To achieve this, you can get the existing permissions for a role, manipulating the bit field as described above and passing the changed bit field to `role.setPermissions()`.
Expand Down

0 comments on commit 8bdd32a

Please sign in to comment.