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
|
|
@ -34,4 +34,10 @@ public class InMemoryInviteCache : IInviteCache
|
|||
_invites[guildId] = invites;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task RemoveAsync(Snowflake guildId)
|
||||
{
|
||||
_invites.Remove(guildId, out _);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue