Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Register Context Menu Command

AI-generated

Summary

Register a Discord context menu command that appears in the right-click menu either on a server member (user type) or on a channel message (message type).

Inputs

  • Command Type (required) — Select whether the context menu command applies to a user (server member) or a message (channel message).
  • Command Name (required) — Set the label displayed in the Discord right-click menu, with a length between 1 and 32 characters, and supporting spaces and mixed casing.
  • Guild ID — Optionally specify a guild ID to register the command only within that guild for instant availability; leave empty to register the command globally, which can take up to one hour to propagate.

Output shape

a single record representing the registered context menu command details returned by Discord API

The command is registered either globally or in a specified guild. Registration in a guild is instant, while global commands may take up to one hour to appear. Errors in registration will be reported as node execution errors.

Links

Discussion