# Message Command

**Introduction**&#x20;

This trigger is activated when a specified message command is executed.

**Configuration**

1. **Command**: Define the command to trigger the response (1-32 characters).
2. **Permissions**: List the permissions required to use this command. If empty, it's accessible to all users.
3. **Guild Only**: Applicable only for custom bots. Enable this to restrict command use to guild channels, not DMs.

**Variables**

1. **User**: The user who executed the command.
2. **Target**: The message targeted by the command.
3. **Channel**: The channel in which the command was used.
4. **Interaction**: The interaction object from the command execution. This can be used to reply to the command with the 'Reply to Interaction' step.

**Usage**&#x20;

Ideal for creating interactive message commands, allowing specific actions or responses based on selected target message.

**Troubleshooting**&#x20;

Verify the command configuration matches the intended functionality and usage.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/discord/triggers/message-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
