Message Edited by Bot

Event triggerMessages

Triggers when a message is edited by a bot.

Only triggers when a message is edited by a bot or webhook. Previous message content may be unavailable without message cache.

Outputs

Message Content

The content of the message after edit

Example: Hello world!

Message ID

The unique ID of the message

Example: 123456789012345678

Channel ID

The ID of the channel where the message was sent

Example: 123456789012345678

Author ID

The ID of the user who sent the message

Example: 123456789012345678

Server ID

The ID of the server where the message was sent

Example: 123456789012345678

Webhook ID

The webhook ID, if the message was sent by a webhook

Example: 123456789012345678

User Mentions

Comma-separated list of mentioned user IDs

Example: 123456789012345678,987654321098765432

Role Mentions

Comma-separated list of mentioned role IDs

Example: 123456789012345678,987654321098765432

Message Sent At (Unix)

Unix timestamp when the message was sent

Example: 1640995200

Message Edited At (Unix)

Unix timestamp when the message was edited

Example: 1640995800

Previous Message Content

Content of the message before it was edited

Example: Hi world!

Message Cache Hit

Whether the previous message content was retrieved from cache

Example: true

Build a bot using triggers like Message Edited by Bot

Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: message_update_bot

Outputs

FieldInventScript nameValue
Message Contentcontente.g. "Hello world!"
Message IDmessage_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "123456789012345678"
Author IDauthor_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Webhook IDwebhook_ide.g. "123456789012345678"
User Mentionsuser_mentionse.g. "123456789012345678,987654321098765432"
Role Mentionsrole_mentionse.g. "123456789012345678,987654321098765432"
Message Sent At (Unix)message_sent_ate.g. "1640995200"
Message Edited At (Unix)message_edited_ate.g. "1640995800"
Previous Message Contentprevious_contente.g. "Hi world!"
Message Cache Hitmessage_cache_hite.g. "true"

Example InventScript

var trigger = message_update_bot()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Message Content: " + trigger.content,
	})
}

More messages triggers