You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/reference/templates/syntax-and-data.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ Similarly, provided a channel `$channel`, `$channel.Name` gives the name of the
150
150
| .Guild.OwnerID | Outputs the ID of the owner. |
151
151
| .Guild.PreferredLocale | The preferred locale of a guild with the "PUBLIC" feature; used in server discovery and notices from Discord; defaults to "en-US" |
152
152
| .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. |
153
154
| .Guild.Splash | Outputs the [splash hash](https://discordapp.com/developers/docs/reference#image-formatting) ID of the guild's splash. |
154
155
| .Guild.SystemChannelID | The ID of the channel where guild notices such as welcome messages and boost events are posted. |
155
156
| .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
158
159
| .Guild.WidgetChannelID | Outputs the channel ID for the server widget. |
159
160
| .Guild.WidgetEnabled | Outputs whether or not the server widget is enabled. |
|`.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
253
256
| .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). |
254
257
| .Message.Reference | Reference returns MessageReference of given message. |
255
258
| .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. |
256
260
| .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_). |
257
261
| .Message.TTS | Whether the message is text-to-speech. \*|
258
262
| .Message.Type | The [type](https://discord.com/developers/docs/resources/message#message-object-message-types) of the message. |
259
263
| .Message.WebhookID | If the message is generated by a webhook, this is the webhook's id |
0 commit comments