Message Deleted

Event triggerMessages

Triggers when a message is deleted.

Message content and Author ID are available if Message Cache is enabled in branch settings.

Outputs

Message ID

The ID of the deleted message

Example: 123456789012345678

Channel ID

The ID of the channel where the message was deleted

Example: 123456789012345678

Server ID

The ID of the server where the message was deleted

Example: 123456789012345678

Previous Message Content

Content of the deleted message if available

Example: This is a message

Author ID

The ID of the user who sent the deleted message

Example: 123456789012345678

Message Cache Hit

Whether the previous message content was retrieved from cache

Example: true

Build a bot using triggers like Message Deleted

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_delete

Outputs

FieldInventScript nameValue
Message IDmessage_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Previous Message Contentprevious_contente.g. "This is a message"
Author IDauthor_ide.g. "123456789012345678"
Message Cache Hitmessage_cache_hite.g. "true"

Example InventScript

var trigger = message_delete()

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

More messages triggers