Skip to content

Commit 31cb4de

Browse files
committed
docs: add .Message.StickerItems and .Guild.Stickers
See botlabs-gg/yagpdb#1752 Signed-off-by: Luca Zeuch <[email protected]>
1 parent 6f5a150 commit 31cb4de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/docs/reference/templates/syntax-and-data.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Similarly, provided a channel `$channel`, `$channel.Name` gives the name of the
150150
| .Guild.OwnerID | Outputs the ID of the owner. |
151151
| .Guild.PreferredLocale | The preferred locale of a guild with the "PUBLIC" feature; used in server discovery and notices from Discord; defaults to "en-US" |
152152
| .Guild.Roles | Outputs all roles and indexing them gives more information about the role. For example `{{len .Guild.Roles}}` gives you how many roles are there in that guild. Role struct has [following fields](https://discordapp.com/developers/docs/topics/permissions#role-object). |
153+
| .Guild.Stickers | A slice of all [sticker objects] in the guild. |
153154
| .Guild.Splash | Outputs the [splash hash](https://discordapp.com/developers/docs/reference#image-formatting) ID of the guild's splash. |
154155
| .Guild.SystemChannelID | The ID of the channel where guild notices such as welcome messages and boost events are posted. |
155156
| .Guild.Threads | Returns all active threads in the guild as a slice of type _\[]dstate.ChannelState_. |
@@ -158,6 +159,8 @@ Similarly, provided a channel `$channel`, `$channel.Name` gives the name of the
158159
| .Guild.WidgetChannelID | Outputs the channel ID for the server widget. |
159160
| .Guild.WidgetEnabled | Outputs whether or not the server widget is enabled. |
160161

162+
[sticker objects]: https://discord.com/developers/docs/resources/sticker#sticker-object
163+
161164
| **Method** | **Description** |
162165
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
163166
| `.Guild.BannerURL` "256" | Gives the URL for guild's banner, argument “256” is the size of the picture and increases/decreases twofold (e.g. 512, 1024 or 128, 64 etc.). |
@@ -253,11 +256,14 @@ Interaction functions are covered [here](/docs/reference/templates/functions#int
253256
| .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/channel#reaction-object). |
254257
| .Message.Reference | Reference returns MessageReference of given message. |
255258
| .Message.ReferencedMessage | Message object associated by message_reference, like a message that was replied to. |
259+
| .Message.StickerItems | A slice of [sticker items] attached to the message. |
256260
| .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_). |
257261
| .Message.TTS | Whether the message is text-to-speech. \* |
258262
| .Message.Type | The [type](https://discord.com/developers/docs/resources/message#message-object-message-types) of the message. |
259263
| .Message.WebhookID | If the message is generated by a webhook, this is the webhook's id |
260264

265+
[sticker items]: https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure
266+
261267
| Field | Description |
262268
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
263269
| .Args | List of everything that is passed to .Message.Content. .Args is a _slice_ of type _string_. |

0 commit comments

Comments
 (0)