Guild / Server
The guild you are in; you are in a guild
Last updated
Was this helpful?
The guild you are in; you are in a guild
Last updated
Was this helpful?
Field
Description
.Guild.ID
Outputs the ID of the guild.
.Guild.Name
Outputs the name of the guild.
.Guild.Icon
Outputs the ID of the guild's icon.
.Guild.Region
Outputs the region of the guild.
.Guild.AfkChannelID
Outputs the AFK channel ID.
.Guild.OwnerID
Outputs the ID of the owner.
.Guild.JoinedAt
Outputs the timestamp when YAGPDB joined the guild. To convert it to type time.Time, use .Parse method > .Guild.JoinedAt.Parse
.Guild.AfkTimeout
Outputs the time when a user gets moved into the AFK channel while not being active.
.Guild.MemberCount
Outputs the number of users on a guild.
.Guild.VerificationLevel
Outputs the required verification level for the guild.
.Guild.VoiceStates
Outputs a list of voice states (users connected to VCs) with type *discordgo.VoiceState.
.Guild.EmbedEnabled
Outputs whether guild is embeddable (e.g. widget) or not, true / false.
.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 .
Guild object in Discord documentation (read it if you want to write more complex codes).