textMessage := send_text_message(Args{channel_id: trigger.channel_id, message_content: "Hello world!"})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Message ID: " + textMessage.message_id,
})
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 only pings users; None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging.
OptionsNoneEveryone/HereRolesUsers
Message ContentRequired
Content of the message sent by the bot.
Example: Hello world!
Outputs
Message ID
ID of the sent or edited message
Build a bot using blocks like Send or Edit Text 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_text_messageInputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | |
| Edit Message ID | edit_message_id | |
| Reply To Message ID | reply_to_message_id | |
| Allow Mentions | allow_mentions | "None", "Everyone/Here", "Roles", "Users" |
| Message Content | message_content | e.g. "Hello world!" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Message ID | message_id |
Example InventScript
More messages blocks
Send TTS MessageSend a text-to-speech message.Send Advanced MessageSend a Components v2 message.Send or Edit Embed MessageSend or edit an embed message.Get MessageFetch a single message by its ID from a channel.Get MessagesFetch recent messages from a channel and iterate over them.Search Server MessagesSearch a server's messages and iterate over the matched messages.Get Pinned MessagesFetch pinned messages from a channel and iterate over them.Forward MessageForward a message into another channel.Delete MessageDelete a message by its ID from a channel.Pin MessagePin a message in a channel.Unpin MessageUnpin a message in a channel.Publish MessagePublish an announcement message to all channels following the announcement channel.Suppress Message EmbedsSuppresses link preview embeds on a message by setting the SUPPRESS_EMBEDS flag.Purge MessagesBulk-delete messages from a channel.Poll AnswerA single answer option for a poll.Send PollSend a poll message in a channel.End PollImmediately end a poll on a message.Get Poll Answer VotersFetch users who voted for a specific poll answer and iterate over them.