feat(api): also clear cache when leaving a guild
This commit is contained in:
parent
5c57b75335
commit
439051999f
10 changed files with 53 additions and 0 deletions
|
|
@ -30,4 +30,6 @@ public class EmojiCache
|
|||
_emojis.TryGetValue(guildId, out emoji);
|
||||
|
||||
public int Size => _emojis.Select(kv => kv.Value.Count).Sum();
|
||||
|
||||
public bool Remove(Snowflake guildId) => _emojis.Remove(guildId, out _);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue