public async Task OnShutdown() { foreach (var interaction in _interactions) { AltInteractions.RemoveInteraction(interaction); } _interactions.Clear(); await Task.CompletedTask; }
private void RemoveInteraction(long type, long id) { Interaction interaction = GetInteraction(type, id); if (interaction == null) { return; } AltInteractions.RemoveInteraction(interaction); interactions.Remove($"{type}_{id}"); }