Skip to content

Commit

Permalink
fix(popular-topics): "VIEW_CHANNELS" -> "VIEW_CHANNEL" (discordjs#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
maisans-maid authored Dec 24, 2021
1 parent 2bb7d3b commit b050b65
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 @@ -44,7 +44,7 @@ Base permissions are set on roles, not the guild member itself. To change them,
```js
const { Permissions } = require('discord.js');

guild.roles.everyone.setPermissions([Permissions.FLAGS.SEND_MESSAGES, Permissions.FLAGS.VIEW_CHANNELS]);
guild.roles.everyone.setPermissions([Permissions.FLAGS.SEND_MESSAGES, Permissions.FLAGS.VIEW_CHANNEL]);
```

Any permission not referenced in the flag array or bit field is not granted to the role.
Expand Down

0 comments on commit b050b65

Please sign in to comment.