# Guild Message Deleted

**Introduction**

The "Guild Message Deleted" trigger activates whenever a message is deleted in specified channels within a guild. This trigger is useful for monitoring message deletions, enabling automations to respond to or log these events.

**Configuration**

* **Filters**: A set of conditions that determine where the trigger should activate. This parameter includes:
  * **Guilds**:
    * **Allow**: Specifies the guilds where the trigger should activate.
  * **Channels**:
    * **Allow**: Specifies the channels within the guilds where the trigger should activate. This parameter is required if no "Deny" channels are specified.
    * **Deny**: Specifies the channels within the guilds where the trigger should not activate. This parameter is required if no "Allow" channels are specified.

**Outputs**

* **Guild**: The guild where the message was deleted. This output provides the context of the triggered event.
* **Channel**: The channel from which the message was deleted.
* **Message ID**: The ID of the deleted message.
* **Message**: The content of the deleted message, if it was tracked. This output may be `null` if the message was not among the last 50 messages received since the bot started.

> **Note:** This trigger only tracks the last 50 messages received since the bot was started. If a deleted message was not tracked, the `Message` output will be empty / `null`.


---

# 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/guild-message-deleted.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.
