Tags
{message}
Tags
Looking to send a message? You want the {responder} tags.
{message.id;message}
Returns the ID of a message.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.content;message}
Returns a string with the content of a message.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.delete;message;reason}
This tag is part of the Mutate Message
expensive group.
This tag is marked Dangerous
.
Deletes a message.
Name | Type | Default | Description |
---|---|---|---|
message | Message | context Message | The message to delete. |
reason | string? | The reason for deleting the message. |
{message.pinned;message}
Checks if a message is pinned.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.pin;message;reason}
This tag is part of the Mutate Message
expensive group.
Pins a message.
Name | Type | Default | Description |
---|---|---|---|
message | Message | context Message | The message to pin. |
reason | string? | The reason for pinning the message. |
{message.unpin;message;reason}
This tag is part of the Mutate Message
expensive group.
Unpins a message.
Name | Type | Default | Description |
---|---|---|---|
message | Message | context Message | The message to unpin. |
reason | string? | The reason for unpinning the message. |
{message.publish;message}
This tag is part of the Mutate Message
expensive group.
Publishes a message. Only works in news channels.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.embed;message;index}
Get an embed from the message.
Name | Type | Default | Description |
---|---|---|---|
message | Message | context Message | The message to get the embed of. |
index | number | 0 | The index of the embed to get. Defaults to 0. |
{=embed;{message.embed}}
{$embed.title}
{message.referenceId;message}
The ID of the message this message is replying to.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.addReaction;emoji;message}
This tag is part of the Mutate Reaction
expensive group.
Adds a reaction to a message.
Name | Type | Default | Description |
---|---|---|---|
emoji | Emoji | The emoji to add as the reaction. | |
message | Message | context Message | The message to react to. |
{message.removeReaction;emoji;user;message}
This tag is part of the Mutate Reaction
expensive group.
Removes a reaction from a message.
Name | Type | Default | Description |
---|---|---|---|
emoji | Emoji | The emoji to remove as the reaction. | |
user | User? | The user to remove the reaction from. | |
message | Message | context Message | The message to remove a reaction from. |
{message.removeReactions;emoji;message}
This tag is part of the Mutate Reaction
expensive group.
Removes all reactions, optionally for a specific emoji.
Name | Type | Default | Description |
---|---|---|---|
emoji | Emoji? | The emoji to remove reactions for. If omitted, all reactions are removed. | |
message | Message | context Message | The message to remove reactions from. |
{message.removeReactions} // Will remove all reactions
{message.removeReaction;emoji} // Will remove all reactions for a specific emoji
{message.link;message}
Returns a string with the jump URL of a message.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.authorId;message}
Returns the ID of the author of a message.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.channelId;message}
Returns the ID of the channel a message is in.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.tts;message}
Checks if a message was sent as text to speech.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.mentions;message}
Get a list of mentions from a message. Returns an array of IDs that includes roles, channels and users.
Name | Type | Default |
---|---|---|
message | Message | context Message |
{message.reactions;message}
Get a list of reactions from a message. Returns an array of objects. For example, this message
Would result in this
[
{
"count": 1,
"me": false,
"emoji": {
"id": null,
"animated": false,
"name": "🍆"
}
},
{
"count": 1,
"me": false,
"emoji": {
"id": "538224338269372438",
"animated": true,
"name": null
}
}
]
{=reactions;{message.reactions}}
{$reactions.0.count} // 1
{$reactions.0.me} // false (whether the bot has reacted with this message)
{$reactions.0.emoji.id} // null
{$reactions.0.emoji.animated} // false
{$reactions.0.emoji.name} // 🍆
Name | Type | Default |
---|---|---|
message | Message | context Message |
See objects for information on working with objects.
{message.attachments;message;single;objects}
Get the attachments from a message.
Name | Type | Default | Description |
---|---|---|---|
message | Message | context Message | The message to get attachments from. |
single | boolean | true | Whether to return a single attachment or an array. |
objects | boolean | false | Whether to return attachment urls or an array of attachment objects. |
{message.createdAt;message}
Returns a timestamp for the creation date of a message that can be used with {time}.
Name | Type | Default |
---|---|---|
message | Message | context Message |