# Right-click command

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

Source: https://docs.buildcord.dev/nodes/triggers/right-click-command/

`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

| Setting | What it does |
| --- | --- |
| Name | What the menu shows, up to 32 characters, capitals and spaces allowed, such as `Report message`. |
| Opens on | A member, or a message. |

## Ways out

`out`.

## Produces

On a member:

| Token | Value |
| --- | --- |
| `{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:

| Token | Value |
| --- | --- |
| `{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 |
| `{message.files}` | The address of each file, one per line |
| `{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](https://docs.buildcord.dev/nodes/messages/reply), usually **Only visible to the user**, or open a [form](https://docs.buildcord.dev/nodes/messages/send-form).
- Discord allows 15 on members and 15 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](https://docs.buildcord.dev/nodes/messages/send-to-channel) `{message.link}` by `<@{target.id}>` to a mod channel.

## Related

- [Slash command](https://docs.buildcord.dev/nodes/triggers/slash-command)
