---
title: "Discord Bot Trigger"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/messaging/discord/discordbottrigger
markdown: https://docs.nodetool.ai/nodes/messaging/discord/discordbottrigger.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/messaging/discord/discordbottrigger.md
---

# Discord Bot Trigger

**Type:** `messaging.discord.DiscordBotTrigger`

**Namespace:** `messaging.discord`

## Description

Listen for Discord messages from a bot account and emit them as events.
    discord, trigger, bot, messages, chat, events, listen

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| max_events | `int` | Maximum number of events to process (0 = unlimited) | `0` |
| token | `str` | Discord bot token | `` |
| channel_id | `str` | Optional channel ID to filter messages | null |
| allow_bot_messages | `bool` | Include messages authored by bots | `false` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| message_id | `int` |  |
| content | `str` |  |
| author | `dict[str, any]` |  |
| channel | `dict[str, any]` |  |
| guild | `dict[str, any]` |  |
| attachments | `list[dict[str, any]]` |  |
| timestamp | `str` |  |
| source | `str` |  |
| event_type | `str` |  |

## Related Nodes

Browse other nodes in the [messaging.discord](./) namespace.
