Message Sent by Bot

Triggers when a message is sent by a bot.

Only triggers when a message is sent by a bot or webhook. Message content will be empty without message content intent.

This trigger is based on Discord event MessageCreate.

Inputs

There are no inputs for this trigger.

Outputs

Message Content

The content of the message.

Message content will be empty without the Message Content intent. Check your bot’s intents here.

Example: Hello! How are you?

Message ID

The ID of the message.

Example: 123456789012345678

Channel ID

The ID of the channel that the message was sent in.

Example: 123456789012345678

Author ID

The ID of the user that sent the message.

Example: 123456789012345678

Server ID

The ID of the server that the message was sent in.

Example: 123456789012345678

User Mentions

A list of the mentioned users in the message.

Example: 123456789012345678,123456789012345678,123456789012345678,

Role Mentions

A list of the mentioned roles in the message.

Example: 123456789012345678,123456789012345678,123456789012345678,

Message Sent At (Unix)

A Unix timestamp of when the message was sent.

Example: 1731886315

Interaction Executed by User ID

If the message is a reply to interaction (E.g. Embed Reply to Interaction), this output is the User ID of whoever called that interaction.

Example: 123456789012345678