Explore Plans
Mobile menu Close menu
DiscordDiscord

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 ID Nested dropdown list

Label
Which Channel?
Helper text
To post a message to an Announcement Channel, add the 'IFTTT' role and 'Send Messages' permission in Channel Permissions. If a server is not present, Reconnect to the Discord service at ifttt.com/discord/settings
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 <@&1234>'
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, <@&(Role ID)>, and <@(User ID)> in the message body
Slug
allowable_mentions
Required
true
Can have default value
true
Filter code method
Discord.postMessageToChannel.setAllowableMentions(string: allowableMentions)