private async void OnTwitchRaid(BotChannel bChan, RaidEventArguments e) { if (bChan.discordAdminChannel > 0) { await SayOnDiscordAdmin(bChan, $"RAID!! {e.SourceChannel} coming in with {e.RaiderCount} raiders."); } }
internal void RaiseRaidEvent(BotChannel bChan, RaidEventArguments e) { if (bChan == null || e == null) { Core.LOG(new LogEntry(LOGSEVERITY.ERROR, "Events", "RaiseRaidEvent fed NULL parameter.")); return; } Core.LOG(new LogEntry(LOGSEVERITY.ERROR, "Events", $"RaiseRaidEvent for {e.TargetChannel}. Coming from {e.SourceChannel} with {e.RaiderCount} raiders.")); OnRaidEvent?.Invoke(bChan, e); }