BuildcordDocs

Right-click command

A command in the Apps menu that opens when someone right-clicks a member or a message.

trigger.menu runs when someone right-clicks (or long-presses, on a phone) a member or a message, opens Apps, and picks this command. Make one under Right-click commands.

Settings

SettingWhat it does
NameWhat the menu shows, up to 32 characters, capitals and spaces allowed, such as Report message.
Opens onA member, or a message.

Ways out

out.

Produces

On a member:

TokenValue
{target.id}, {target.mention}, {target.name}The member it was opened on. Steps that act on "the member" act on them.
{target.nickname}, {target.roles}Their nickname and roles

On a message:

TokenValue
{message.content}, {message.id}, {message.link}The message it was opened on
{message.author}, {message.author.id}Who wrote it
{message.attachments}How many files it has
{target.id}Its author, so steps that act on "the member" act on them

{user.id} and the rest are whoever used the command, as for a slash command.

Notes

  • Answer with a Reply, usually Only visible to the user, or open a form.
  • Discord allows 5 on members and 5 on messages. Two can't share a name and a kind.
  • They have no options and no description.

Example

A Report message command on messages: reply privately "Thanks, the mods will look", and send {message.link} by <@{target.id}> to a mod channel.

On this page