Context Menu Commands#
Commands can also be defined in context menus that appear when you right-click a user or message. These commands have some limitations:
- Options are not supported
- Subcommands and groups are not supported
- There is a maximum of 5 user commands and 5 message commands a bot can have
Additionally, context-menu commands do not have the same naming limitations as slash commands, their names can contain spaces and uppercase letters.
To define a user command, use @arc.user_command
:
To define a message command, use @arc.message_command
:
The second argument of a context-menu command will always be the target of the command (the message/user that was right-clicked).