Skip to content

Commit

Permalink
feat: ✨ add members field
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Jan 17, 2024
1 parent 323f3e3 commit 21174e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/ekizu/guild.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ struct Guild {
/// The id of the channel where admins and moderators of Community guilds
/// receive safety alerts from Discord.
std::optional<Snowflake> safety_alerts_channel_id;
/// Members in the guild.
std::vector<GuildMember> members;
/// Voice states in the guild.
std::vector<VoiceState> voice_states;
};
Expand Down
1 change: 1 addition & 0 deletions src/guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ void from_json(const nlohmann::json &j, Guild &g) {
deserialize(
j, "premium_progress_bar_enabled", g.premium_progress_bar_enabled);
deserialize(j, "safety_alerts_channel_id", g.safety_alerts_channel_id);
deserialize(j, "members", g.members);
deserialize(j, "voice_states", g.voice_states);
}
} // namespace ekizu

0 comments on commit 21174e3

Please sign in to comment.