summaryrefslogtreecommitdiff
path: root/discord/store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/store.cpp')
-rw-r--r--discord/store.cpp8
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;
}