This trigger fires every time a new message is posted in the channel you specify.
Developer info
API endpoint slug
stoat.new_message_in_channel
Trigger fields
Channel link Text input
Label
Channel link
Helper text
Right-click a channel in the Stoat app and choose Copy Link, then paste it here (e.g. https://stoat.chat/server/.../channel/...). Invite your bot to the server first.
Slug
channel_link
Required
true
Can have default value
true
Ingredients
Message
The unique identifier of the message.
Slug
message_id
Filter
Stoat.newMessageInChannel.MessageId
Type
String
Example
01HQZ8K3T7M9N2P4R6S8V0W1X2
Text
The text content of the message.
Slug
text
Filter
Stoat.newMessageInChannel.Text
Type
String
Example
Hey everyone, the release is live!
Author
The unique identifier of the user who posted the message.
Slug
author_id
Filter
Stoat.newMessageInChannel.AuthorId
Type
String
Example
01F8MECHZX3TBDK0WJQ7FJ8R5T
Author name
The username of the user who posted the message.
Slug
author_name
Filter
Stoat.newMessageInChannel.AuthorName
Type
String
Example
jane
Channel
The unique identifier of the channel the message was posted in.
Slug
channel_id
Filter
Stoat.newMessageInChannel.ChannelId
Type
String
Example
01F7ZSBSFHQAAVCFQTFJWXR5SE
Server
The unique identifier of the server the message was posted in.
Slug
server_id
Filter
Stoat.newMessageInChannel.ServerId
Type
String
Example
01F7ZSBSFHQAAVCFQTFJWXR5SF
Created at
The date and time the message was posted.
Slug
created_at
Filter
Stoat.newMessageInChannel.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00
Attachment url
The URL of the first attachment on the message, if any.