Skip to content

Commit

Permalink
Add Requiring Guild Presences Intent Note (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Feb 25, 2021
1 parent 8f38985 commit 136adef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/model/guild/mod.rs
Expand Up @@ -131,6 +131,9 @@ pub struct Guild {
/// The Id of the [`User`] who owns the guild.
pub owner_id: UserId,
/// A mapping of [`User`]s' Ids to their current presences.
///
/// **Note**: This will be empty unless the "guild presences" privileged
/// intent is enabled.
#[serde(serialize_with = "serialize_gen_map")]
pub presences: HashMap<UserId, Presence>,
/// The region that the voice servers that the guild uses are located in.
Expand Down

0 comments on commit 136adef

Please sign in to comment.