diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-21 18:47:34 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-21 18:47:34 -0400 |
commit | 3b4edbfa16861b5013663396e1af827ba889e9df (patch) | |
tree | 51686baf5997c32a3e3aac0aa20368c404f6f3f1 /discord/store.cpp | |
parent | 23b32f8de957204597308f2c1823d5e89f632610 (diff) | |
download | abaddon-portaudio-3b4edbfa16861b5013663396e1af827ba889e9df.tar.gz abaddon-portaudio-3b4edbfa16861b5013663396e1af827ba889e9df.zip |
join/leave guild
Diffstat (limited to 'discord/store.cpp')
-rw-r--r-- | discord/store.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/store.cpp b/discord/store.cpp index fb0bec1..92ccaa0 100644 --- a/discord/store.cpp +++ b/discord/store.cpp @@ -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; } |