Question · Vibe coding with Claude Code course · Module 9: Discord clone

Quiz: Channel overwrite order

In what order does hasPermission apply role overwrites in a channel?

Answer options

  • First allow, then deny, so a prohibition always wins
  • First deny, then allow, so an allow from another role wins
  • Only deny, allow is skipped
  • Depending on the order of roles in the roles array

You can check the correct answer by solving this task in the CodeWorlds game.