Send Advanced Message

BlockMessages

Send a Components v2 message.

Inputs

Channel IDRequired

ID of channel to send message to.

Edit Message ID

If you wish to edit a message instead of sending a new message, provide a message ID.

Reply To Message ID

If you wish to reply to a message, provide the ID of the message you wish to reply to. This does not work with editing messages.

Allow Mentions

Choose which mention types should notify users. Empty or None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging.

OptionsNoneEveryone/HereRolesUsers
Message ComponentsRequired

Components of the message sent by the bot.

Holds blocks: Text, Message Container, Section, Action Row, Separator, Gallery

Outputs

Message ID

ID of the sent or edited message

Build a bot using blocks like Send Advanced Message

Use this block 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: send_advanced_message

Inputs

FieldInventScript nameValue
Channel IDchannel_id
Edit Message IDedit_message_id
Reply To Message IDreply_to_message_id
Allow Mentionsallow_mentions"None", "Everyone/Here", "Roles", "Users"
Message Componentsmessage_componentsblocks: func() { ... } with only advmsgcmp_layout_*, advmsgcmp_content_* blocks

Outputs

FieldInventScript nameValue
Message IDmessage_id

Example InventScript

advancedMessage := send_advanced_message(Args{
	channel_id: trigger.channel_id,
	message_components: func() {
		advmsgcmp_layout_container(Args{accent_color: "#0099ff", spoiler: "true"})
	},
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + advancedMessage.message_id,
})

More messages blocks