Explore Plans
Mobile menu Close menu
Discord

Post a message to a channel

This action will send a message from the IFTTT Bot to the channel you specify.

Developer info

API endpoint slug
discord.post_message_to_channel
Filter code method
Discord.postMessageToChannel.skip(string?: reason)
Runtime method
runAction("discord.post_message_to_channel", {})

Action fields

Channel Nested dropdown list

Label
Which Channel?
Helper text
Confirm that <a href="https://ift.tt/disc_faq" target="_blank">permissions</a> are granted in your server. If your server isn’t listed, <a href="https://ift.tt/disc_server" target="_blank">reconnect the Discord service</a>.
Slug
channel_id
Required
true
Can have default value
false

Message Text input > Long text

Label
Message
Helper text
Max limit of 2000 characters. To @mention roles, find the role ID in Discord by running `\@role`. Ex. 'Hello &lt;@&amp;1234&gt;'
Slug
message
Required
true
Can have default value
true
Filter code method
Discord.postMessageToChannel.setMessage(string: message)

Allowable mentions Dropdown list

Label
Allowable mentions
Helper text
Allows usage of @everyone, &lt;@&amp;(Role ID)&gt;, and &lt;@(User ID)&gt; in the message body
Slug
allowable_mentions
Required
true
Can have default value
true
Filter code method
Discord.postMessageToChannel.setAllowable Mentions(string: allowable_mentions)