handle merged_members in ready object

this way you dont have to load a channel to make the client aware of your permissions
This commit is contained in:
ouwou
2021-01-23 18:23:14 -05:00
parent 04734e7e55
commit fd72d91cee
5 changed files with 16 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ void from_json(const nlohmann::json &j, GuildMember &m) {
JS_ON("premium_since", m.PremiumSince);
JS_D("deaf", m.IsDeafened);
JS_D("mute", m.IsMuted);
JS_O("user_id", m.UserID);
}
std::vector<RoleData> GuildMember::GetSortedRoles() const {