Are you an LLM? You can read better optimized documentation at /en/message-templates/types/discord/guild.md for this page in Markdown format
Guild
This data type describes all available data about the server.
Properties
| Property | Type | Description |
|---|---|---|
id | Number | Unique identifier |
name | String | Name |
iconUrl | String | Icon URL |
bannerUrl | String | Banner URL |
afkTimeout | Number | AFK timeout for voice channels (in minutes) |
afkChannel | VoiceChannel | AFK Voice Channel |
memberCount | Number | Amount of Members (including bots) |
userCount | Number | Amount of Members (excluding bots) |
botCount | Number | Amount of Bots |
createdAt | DateTime | Creation date and time |
owner | Member | Owner |
selfMember | Member | Bot's member instance |
boostCount | Number | Amount of active boosts |
indexes | GuildIndexes | Guild Indexes |
Methods
getChannel(ID)
Returns channel by given id.
Returns: TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel
getMember(ID)
getRole(ID)
clearAttributes(Key)
Clears attributes with specified key for all members.
Warning! Quota
Following methods have shared quota and can only be invoked 1 times in the same template:
clearAttributesclearAllAttributes
clearAllAttributes()
Clears all attributes for all members.
Warning! Quota
Following methods have shared quota and can only be invoked 1 times in the same template:
clearAttributesclearAllAttributes
getIndex(Name)
Returns an index by its name.
Returns: GuildIndex
Warning! Quota
You can only access 2 guild indexes in single message template.