join/leave guild

This commit is contained in:
ouwou
2020-09-21 18:47:34 -04:00
parent 23b32f8de9
commit 3b4edbfa16
17 changed files with 347 additions and 17 deletions

View File

@@ -114,6 +114,14 @@ const GuildMember *Store::GetGuildMemberData(Snowflake guild_id, Snowflake user_
return &mit->second;
}
void Store::ClearGuild(Snowflake id) {
m_guilds.erase(id);
}
void Store::ClearChannel(Snowflake id) {
m_channels.erase(id);
}
const Store::channels_type &Store::GetChannels() const {
return m_channels;
}