Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing obsolete events #256

Merged
merged 1 commit into from
Nov 10, 2023
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
Loading