BotNetwork

User and message context menus

context menus act on a target; verify the invoker may touch that target.

Guide1 min readUpdated

Why it matters

Context menus act on a target; verify the invoker may touch that target.

Practical steps

  1. Register as guild commands while iterating
  2. Check permissions relative to the target
  3. Prefer ephemeral results for moderation
  4. Log invoker and target ids
  5. Handle missing message content intent carefully

Watch out for

  • Copy-pasting outdated snippets for discord context menus without re-reading current official docs.
  • Shipping discord context menus to production without a staging rehearsal and a documented rollback.

Related comparisons and tools