Guild
An instance of a Discord Guild.
Properties
Returns all active public and private threads in this guild Threads are ordered by their id, in descending order.
The id of the afk voice channel, if present.
The afk timeout.
The id of the guild creator if it is bot-created.
The approximate number of members in this guild. Present if this guild was requested through rest with the flag with_counts
.
The approximate number of online members in this guild. Present if this guild was requested through rest with the flag with_counts
.
Requests to get all AutoModerationRules currently configured for this guild.
The banner hash, if present.
Requests to get all threads in this guild that are present in cache.
The behaviors of all channels.
The ids of all channels.
The explicit content filter level.
The default message notification level.
The description of this guild, if present.
The hash of the discovery splash, if present.
Requests to get all custom emojis in this guild in an unspecified order.
The behavior of the @everyone role.
The enabled guild features.
Returns the gateway this guild is part of as per the Discord sharding rules. Returns null
if no gateway for the shard is present in kord.
Requests to get the integrations of this guild.
Requests to get the invites for this guild.
Whether this guild has enabled its widget.
The time at which this guild was joined, if present.
The maximum number of members for this guild.
The maximum number of presences for this guild. 25000 By default.
The maximum amount of users in a stage video channel, if present.
The maximum amount of users in a video channel, if present.
The number of members in the guild, if present.
The NSFW Level of this Guild
The behavior of the owner.
Total permissions of the bot in the Guild (excludes channel overrides).
The number of boosts this guild has, if present.
The server boost level.
The behavior of the channel where guild notices such as welcome messages and boost events are posted.
the id of the channel where guild notices such as welcome messages and boost events are posted.
The behaviors of the roles.
The channel behavior in which a discoverable server's rules should be found.
The id of the channel in which a discoverable server's rules should be found
The behavior of the channel where admins and moderators of Community guilds receive safety alerts from Discord.
The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord.
The splash hash, if present.
The supplier used to request entities.
The behavior of the channel to which system messages are sent.
The id of the channel to which system messages are sent.
The vanity code of this server used in the vanityUrl, if present.
The verification level required for the guild.
Requests to get the present voice states of this guild.
The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object
The behavior of the channel widgets will redirect users to, if present.
The ID of the channel the widget will redirect users to, if present.
Functions
Requests to get this behavior as a Guild, returns null if the guild isn't present.
Requests to ban the given userId in this guild.
Requests to create a new category.
Requests to create a new KeywordAutoModerationRule in this guild and returns it.
Requests to create a new KeywordPresetAutoModerationRule in this guild and returns it.
Requests to create a new MemberProfileAutoModerationRule in this guild and returns it.
Requests to create a new MentionSpamAutoModerationRule in this guild and returns it.
Requests to create a new news channel.
Requests to add a new role to this guild.
Creates a new GuildScheduledEvent.
Requests to create a new SpamAutoModerationRule in this guild and returns it.
Requests to create a new stage channel.
Requests to create a new text channel.
Requests to create a new voice channel.
Requests to edit this guild.
Requests to edit this guild's MFA level and returns the updated level.
Requests to edit the GuildOnboarding object of the guild and returns the edited onboarding object.
Requests to change the nickname of the bot in this guild, passing null
will remove it.
Retrieve the Guild associated with this behaviour from the provided EntitySupplier
Retrieve the Guild associated with this behaviour from the provided EntitySupplier returns null if the Guild isn't present.
Requests to get the VoiceChannel represented by the afkChannelId, returns null if the afkChannelId isn't present or the channel itself isn't present.
The Audit log entries from this guild, configured by the builder.
Requests an AutoModerationRule by its id.
Requests an AutoModerationRule by its id. Returns null
if it wasn't found.
Requests to get the TopGuildChannel represented by the channelId.
Requests to get the GuildChannel represented by the channelId as type T.
Requests to get the GuildChannel represented by the channelId as type T, returns null if the GuildChannel isn't present.
Requests to get the GuildChannel represented by the channelId, returns null if the GuildChannel isn't present.
Requests to get the TopGuildChannel represented by the widgetChannelId, returns null if the TopGuildChannel isn't present or widgetChannelId is null.
Requests to get the GuildEmoji represented by the emojiId in this guild.
Requests to get the GuildEmoji represented by the emojiId in this guild, returns null if the GuildEmoji isn't present.
Requests to get the @everyone
Role.
Requests a GuildScheduledEvent by its id.
Requests a GuildScheduledEvent by its id returns null
if none could be found.
Requests to get up to limit members whose Member.username or Member.nickname match the query. The limit accepts a maximum value of 1000
and a minimum of 1
.
Requests the onboarding object for this guild.
Requests the onboarding object for this guild. Returns null
if it wasn't found.
Returns the preview of this guild. The bot does not need to present in this guild for this to complete successfully.
Returns the preview of this guild. The bot does not need to present in this guild for this to complete successfully. Returns null if the preview doesn't exist.
Requests to get the amount of users that would be pruned in this guild.
Requests to get The channel where guild notices such as welcome messages and boost events are posted.
Requests to get the channel in which a discoverable server's rules should be found represented, returns null if the TopGuildMessageChannel isn't present, or rulesChannelId is null.
Requests to get the channel where system messages (member joins, server boosts, etc.) are sent, returns null if the TextChannel isn't present or the systemChannelId is null.
Requests to get the vanity url of this guild, if present.
Requests to get the channel the widget will redirect users to, returns null if the TextChannel isn't present or the widgetChannelId is null.
Executes the request on this gateway, returning a flow of MembersChunkEvent responses.
Executes a RequestGuildMembers command configured by the builder for guild on this gateway, returning a flow of MembersChunkEvent responses.
Requests to swap positions of channels in this guild.
Requests to swap positions of roles in this guild.