diff --git a/content/docs/reference/templates/syntax-and-data.md b/content/docs/reference/templates/syntax-and-data.md index 61f8900..ccf7eae 100644 --- a/content/docs/reference/templates/syntax-and-data.md +++ b/content/docs/reference/templates/syntax-and-data.md @@ -244,35 +244,37 @@ Interaction functions are covered [here](/docs/reference/templates/functions#int ### Message -| **Field** | **Description** | -| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| .Message.Activity | Represents the activity sent with a message, such as a game invite, of type _\*discordgo.MessageActivity_. Sent with Rich Presence-related chat embeds. | -| .Message.ApplicationID | If the message is an interaction- or application-owned webhook, this is the ID of that application. | -| .Message.Attachments | Attachments of this message (_slice_ of [attachment](https://discord.com/developers/docs/resources/message#attachment-object) objects). | -| .Message.Author | Author of the message ([User](#user) object). | -| .Message.ChannelID | Channel ID this message is in. | -| .Message.Components | Slice of [discordgo.ActionsRow](https://discord.com/developers/docs/interactions/message-components#action-rows)s, which each contain components. Example on indexing the first button or menu under a message: `( index ( index .Message.Components 0 ).Components 0 )` | -| .Message.Content | Text content of this message. | -| .Message.ContentWithMentionsReplaced | Replaces all <@ID> mentions with the username of the mention. | -| .Message.EditedTimestamp | The time at which the last edit of the message occurred, if it has been edited. As with .Message.Timestamp, it is of type _discordgo.Timestamp._ | -| .Message.Embeds | Embeds of this message (_slice_ of embed objects). | -| .Message.GuildID | Guild ID in which the message is. | -| .Message.ID | ID of the message. | -| .Message.Link | Discord link to the message. \* | -| .Message.Member | [Member object](#member). \* | -| .Message.MentionEveryone | Whether the message mentions everyone, returns _bool_ true/false. | -| .Message.MentionRoles | The roles mentioned in the message, returned as a slice of type _discordgo.IDSlice._ | -| .Message.Mentions | Users this message mentions, returned as a slice of type _\[]\*discordgo.User._ | -| .Message.MessageReference | MessageReference contains reference data sent with crossposted or reply messages. Has fields MessageID, ChannelID and GuildID. | -| .Message.Pinned | Whether this message is pinned, returns _bool_ true/false. | -| .Message.Reactions | Reactions on this message, returned as a slice of type _\[]\*discordgo.MessageReactions_. Reaction Object in [Discord documentation](https://discord.com/developers/docs/resources/message#reaction-object). | -| .Message.Reference | Reference returns MessageReference of given message. | -| .Message.ReferencedMessage | Message object associated by message_reference, like a message that was replied to. | -| .Message.StickerItems | A slice of [sticker items] attached to the message. | -| .Message.Timestamp | Timestamp of the message in type _discordgo.Timestamp_ (use .Message.Timestamp.Parse to get type _time.Time_ and .Parse.String method returns type _string_). | -| .Message.TTS | Whether the message is text-to-speech. \* | -| .Message.Type | The [type](https://discord.com/developers/docs/resources/message#message-object-message-types) of the message. | -| .Message.WebhookID | If the message is generated by a webhook, this is the webhook's id | +| **Field** | **Description** | +| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| .Message.Activity | Represents the activity sent with a message, such as a game invite, of type _\*discordgo.MessageActivity_. Sent with Rich Presence-related chat embeds. | +| .Message.ApplicationID | If the message is an interaction- or application-owned webhook, this is the ID of that application. | +| .Message.Attachments | Attachments of this message (_slice_ of [attachment](https://discord.com/developers/docs/resources/message#attachment-object) objects). | +| .Message.Author | Author of the message ([User](#user) object). | +| .Message.ChannelID | Channel ID this message is in. | +| .Message.Components | Slice of [discordgo.ActionsRow](https://discord.com/developers/docs/interactions/message-components#action-rows)s, which each contain components. Example on indexing the first button or menu under a message: `( index ( index .Message.Components 0 ).Components 0 )` | +| .Message.Content | Text content of this message. | +| .Message.ContentWithMentionsReplaced | Replaces all <@ID> mentions with the username of the mention. | +| .Message.EditedTimestamp | The time at which the last edit of the message occurred, if it has been edited. As with .Message.Timestamp, it is of type _discordgo.Timestamp._ | +| .Message.Embeds | Embeds of this message (_slice_ of embed objects). | +| .Message.Flags | Message flags, represented as a bit set. | +| .Message.GuildID | Guild ID in which the message is. | +| .Message.ID | ID of the message. | +| .Message.Link | Discord link to the message. \* | +| .Message.Member | [Member object](#member). \* | +| .Message.MentionEveryone | Whether the message mentions everyone, returns _bool_ true/false. | +| .Message.MentionRoles | The roles mentioned in the message, returned as a slice of type _discordgo.IDSlice._ | +| .Message.Mentions | Users this message mentions, returned as a slice of type _\[]\*discordgo.User._ | +| .Message.MessageReference | MessageReference contains reference data sent with crossposted or reply messages. Has fields MessageID, ChannelID and GuildID. | +| .Message.Pinned | Whether this message is pinned, returns _bool_ true/false. | +| .Message.Reactions | Reactions on this message, returned as a slice of type _\[]\*discordgo.MessageReactions_. Reaction Object in [Discord documentation](https://discord.com/developers/docs/resources/message#reaction-object). | +| .Message.Reference | Reference returns MessageReference of given message. | +| .Message.ReferencedMessage | Message object associated by message_reference, like a message that was replied to. | +| .Message.MessageSnapshots | A slice of message snapshot objects, which are slimmed down message objects, currently limited to `Type`, `Content`, `Embeds`, `Attachments`, `Timestamp`, `EditedTimestamp`, `Flags`, `Mentions`, `MentionRoles`, `StickerItems`, and `Components`. | +| .Message.StickerItems | A slice of [sticker items] attached to the message. | +| .Message.Timestamp | Timestamp of the message in type _discordgo.Timestamp_ (use .Message.Timestamp.Parse to get type _time.Time_ and .Parse.String method returns type _string_). | +| .Message.TTS | Whether the message is text-to-speech. \* | +| .Message.Type | The [type](https://discord.com/developers/docs/resources/message#message-object-message-types) of the message. | +| .Message.WebhookID | If the message is generated by a webhook, this is the webhook's id | [sticker items]: https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure