Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions TwitchLib.Client/Events/OnChatColorChangedArgs.cs

This file was deleted.

28 changes: 0 additions & 28 deletions TwitchLib.Client/Events/OnModeratorsReceivedArgs.cs

This file was deleted.

29 changes: 0 additions & 29 deletions TwitchLib.Client/Events/OnVIPsReceivedArgs.cs

This file was deleted.

15 changes: 0 additions & 15 deletions TwitchLib.Client/Interfaces/ITwitchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ public interface ITwitchClient
/// </summary>
event AsyncEventHandler<OnAnnouncementArgs>? OnAnnouncement;

/// <summary>
/// Fires when VIPs are received from chat
/// </summary>
event AsyncEventHandler<OnVIPsReceivedArgs>? OnVIPsReceived;

/// <summary>
/// Fires when client connects to Twitch.
/// </summary>
Expand Down Expand Up @@ -188,16 +183,6 @@ public interface ITwitchClient
/// </summary>
event AsyncEventHandler<OnUserBannedArgs>? OnUserBanned;

/// <summary>
/// Fires when a list of moderators is received.
/// </summary>
event AsyncEventHandler<OnModeratorsReceivedArgs>? OnModeratorsReceived;

/// <summary>
/// Fires when confirmation of a chat color change request was received.
/// </summary>
event AsyncEventHandler<OnChatColorChangedArgs>? OnChatColorChanged;

/// <summary>
/// Fires when data is either received or sent.
/// </summary>
Expand Down
14 changes: 0 additions & 14 deletions TwitchLib.Client/TwitchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ public class TwitchClient : ITwitchClient
/// <inheritdoc/>
public event AsyncEventHandler<OnAnnouncementArgs>? OnAnnouncement;

/// <inheritdoc/>
public event AsyncEventHandler<OnVIPsReceivedArgs>? OnVIPsReceived;

/// <inheritdoc/>
public event AsyncEventHandler<Events.OnConnectedEventArgs>? OnConnected;

Expand Down Expand Up @@ -216,12 +213,6 @@ public class TwitchClient : ITwitchClient
/// <inheritdoc/>
public event AsyncEventHandler<OnUserBannedArgs>? OnUserBanned;

/// <inheritdoc/>
public event AsyncEventHandler<OnModeratorsReceivedArgs>? OnModeratorsReceived;

/// <inheritdoc/>
public event AsyncEventHandler<OnChatColorChangedArgs>? OnChatColorChanged;

/// <inheritdoc/>
public event AsyncEventHandler<OnSendReceiveDataArgs>? OnSendReceiveData;

Expand Down Expand Up @@ -936,18 +927,13 @@ private Task HandleNotice(IrcMessage ircMessage)

var result = msgId switch
{
MsgIds.ColorChanged => OnChatColorChanged?.Invoke(this, new(channel)),
MsgIds.ModeratorsReceived => OnModeratorsReceived?.Invoke(this, new(channel, message)),
MsgIds.NoMods => OnModeratorsReceived?.Invoke(this, new(channel, string.Empty)),
MsgIds.NoPermission => OnNoPermissionError?.Invoke(this, new(channel, message)),
MsgIds.RaidErrorSelf => OnSelfRaidError?.Invoke(this, new(channel, message)),
MsgIds.RaidNoticeMature => OnRaidedChannelIsMatureAudience?.Invoke(this, new(channel, message)),
MsgIds.MsgBannedEmailAlias => OnBannedEmailAlias?.Invoke(this, new(channel, message)),
MsgIds.MsgChannelSuspended => HandleChannelSuspended(ircMessage),
MsgIds.MsgRequiresVerifiedPhoneNumber => OnRequiresVerifiedPhoneNumber?.Invoke(this, new(channel, message)),
MsgIds.MsgVerifiedEmail => OnRequiresVerifiedEmail?.Invoke(this, new(channel, message)),
MsgIds.NoVIPs => OnVIPsReceived?.Invoke(this, new(channel, string.Empty)),
MsgIds.VIPsSuccess => OnVIPsReceived?.Invoke(this, new(channel, message)),
MsgIds.MsgRateLimit => OnRateLimit?.Invoke(this, new(channel, message)),
MsgIds.MsgDuplicate => OnDuplicate?.Invoke(this, new(channel, message)),
MsgIds.MsgFollowersOnly => OnFollowersOnly?.Invoke(this, new(channel, message)),
Expand Down