var trigger = message_update()
func main() {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Message Content: " + trigger.content,
})
}
Message Edited
Triggers when a message is edited.
Outputs
The content of the message after edit
Example: Hello world!
The unique ID of the message
Example: 123456789012345678
The ID of the channel where the message was sent
Example: 123456789012345678
The ID of the user who sent the message
Example: 123456789012345678
The ID of the server where the message was sent
Example: 123456789012345678
Comma-separated list of mentioned user IDs
Example: 123456789012345678,987654321098765432
Comma-separated list of mentioned role IDs
Example: 123456789012345678,987654321098765432
Unix timestamp when the message was sent
Example: 1640995200
Unix timestamp when the message was edited
Example: 1640995800
Content of the message before it was edited
Example: Hi world!
Whether the previous message content was retrieved from cache
Example: true
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
message_updateOutputs
| Field | InventScript name | Value |
|---|---|---|
| Message Content | content | e.g. "Hello world!" |
| Message ID | message_id | e.g. "123456789012345678" |
| Channel ID | channel_id | e.g. "123456789012345678" |
| Author ID | author_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |
| User Mentions | user_mentions | e.g. "123456789012345678,987654321098765432" |
| Role Mentions | role_mentions | e.g. "123456789012345678,987654321098765432" |
| Message Sent At (Unix) | message_sent_at | e.g. "1640995200" |
| Message Edited At (Unix) | message_edited_at | e.g. "1640995800" |
| Previous Message Content | previous_content | e.g. "Hi world!" |
| Message Cache Hit | message_cache_hit | e.g. "true" |