#[non_exhaustive]pub struct AvailableGuild {
pub guild: Guild,
pub joined_at: Option<Timestamp>,
pub large: bool,
pub member_count: u32,
pub voice_states: Vec<VoiceState>,
pub members: Vec<Member>,
pub channels: Vec<Channel>,
pub threads: Vec<Channel>,
pub presences: Vec<Presence>,
pub stage_instances: Vec<StageInstance>,
pub guild_scheduled_events: Vec<GuildScheduledEvent>,
pub soundboard_sounds: Vec<SoundboardSound>,
}Expand description
An available guild in a GuildCreate: the Guild plus the state the gateway sends with
it (D-073).
Without the GUILD_PRESENCES intent, or in guilds with over 75 000 members, members and
presences only hold the bot and users in voice channels.
Dereferences to the contained Guild.
discord.js counterpart: GatewayGuildCreateDispatchData (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.guild: GuildThe guild.
joined_at: Option<Timestamp>When the bot joined the guild (always sent by Discord).
large: boolWhether the guild counts as large (offline members are not sent).
member_count: u32The total number of members.
voice_states: Vec<VoiceState>The voice states of members in voice channels (without guild_id).
members: Vec<Member>The members sent with the guild.
channels: Vec<Channel>The channels.
threads: Vec<Channel>The active threads the bot can see.
presences: Vec<Presence>The presences of the members sent (without guild_id).
stage_instances: Vec<StageInstance>The stage instances.
guild_scheduled_events: Vec<GuildScheduledEvent>The scheduled events.
soundboard_sounds: Vec<SoundboardSound>The soundboard sounds.