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

fix typos #253

Merged
merged 1 commit into from
Oct 30, 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
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/Announcement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Announcement(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -47,12 +47,13 @@ public Announcement(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/AnonGiftPaidUpgrade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public AnonGiftPaidUpgrade(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -48,12 +48,13 @@ public AnonGiftPaidUpgrade(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
9 changes: 5 additions & 4 deletions TwitchLib.Client.Models/BitsBadgeTier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public BitsBadgeTier(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -42,12 +42,13 @@ public BitsBadgeTier(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand All @@ -70,4 +71,4 @@ protected override bool TrySet(KeyValuePair<string, string> tag)
}
return true;
}
}
}
2 changes: 1 addition & 1 deletion TwitchLib.Client.Models/ChannelState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ChannelState(IrcMessage ircMessage)
Mercury = TagHelper.ToBool(tagValue);
break;
default:
(UndocumentedTags = new()).Add(tag.Key, tag.Value);
(UndocumentedTags ??= new()).Add(tag.Key, tag.Value);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.Client.Models/ChatMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public ChatMessage(
break;
default:
if (!(ChatReply.TrySetTag(ref _chatReply, tag) || HypeChat.TrySetTag(ref _hypeChat, tag)))
(UndocumentedTags = new()).Add(tag.Key, tag.Value);
(UndocumentedTags ??= new()).Add(tag.Key, tag.Value);
break;
}
}
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/CommunityPayForward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public CommunityPayForward(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -48,12 +48,13 @@ public CommunityPayForward(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
4 changes: 2 additions & 2 deletions TwitchLib.Client.Models/CommunitySubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public CommunitySubscription(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -63,7 +63,7 @@ public CommunitySubscription(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/ContinuedGiftedSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ContinuedGiftedSubscription(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -62,12 +62,13 @@ public ContinuedGiftedSubscription(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
9 changes: 5 additions & 4 deletions TwitchLib.Client.Models/GiftedSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public GiftedSubscription(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -90,12 +90,13 @@ public GiftedSubscription(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down Expand Up @@ -124,7 +125,7 @@ protected override bool TrySet(KeyValuePair<string, string> tag)
case Tags.MsgParamMonths:
MsgParamMonths = tag.Value;
break;
case Tags.MsgParamRecipientDisplayname:
case Tags.MsgParamRecipientDisplayName:
MsgParamRecipientDisplayName = tag.Value;
break;
case Tags.MsgParamRecipientId:
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.Client.Models/Internal/Tags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static class Tags
public const string MsgParamSubPlan = "msg-param-sub-plan"; // Sent only on sub, resub, subgift, anonsubgift
public const string MsgParamSubPlanName = "msg-param-sub-plan-name"; // Sent only on sub, resub, subgift, anonsubgift
public const string MsgParamViewerCount = "msg-param-viewerCount"; // Sent only on raid
public const string MsgParamRecipientDisplayname = "msg-param-recipient-display-name"; // Sent only on subgift, anonsubgift
public const string MsgParamRecipientDisplayName = "msg-param-recipient-display-name"; // Sent only on subgift, anonsubgift
public const string MsgParamRecipientId = "msg-param-recipient-id"; // Sent only on subgift, anonsubgift
public const string MsgParamRecipientUsername = "msg-param-recipient-user-name"; // Sent only on subgift, anonsubgift
public const string MsgParamRitualName = "msg-param-ritual-name"; // Sent only on ritual
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/PrimePaidSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PrimePaidSubscriber(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -50,12 +50,13 @@ public PrimePaidSubscriber(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/RaidNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public RaidNotification(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -54,12 +54,13 @@ public RaidNotification(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/ReSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public ReSubscriber(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -70,12 +70,13 @@ public ReSubscriber(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/Ritual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Ritual(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -46,12 +46,13 @@ public Ritual(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
9 changes: 5 additions & 4 deletions TwitchLib.Client.Models/StandardPayForward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public StandardPayForward(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -57,12 +57,13 @@ public StandardPayForward(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down Expand Up @@ -97,7 +98,7 @@ protected override bool TrySet(KeyValuePair<string, string> tag)
case Tags.MsgParamPriorGifterUserName:
MsgParamPriorGifterUserName = tag.Value;
break;
case Tags.MsgParamRecipientDisplayname:
case Tags.MsgParamRecipientDisplayName:
MsgParamRecipientDisplayName = tag.Value;
break;
case Tags.MsgParamRecipientId:
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/Subscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Subscriber(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -70,12 +70,13 @@ public Subscriber(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Models/UnraidNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public UnraidNotification(
List<KeyValuePair<string, string>> badgeInfo,
List<KeyValuePair<string, string>> badges,
string hexColor,
string displayMame,
string displayName,
string emotes,
string id,
string login,
Expand All @@ -36,12 +36,13 @@ public UnraidNotification(
: base(badgeInfo,
badges,
hexColor,
displayMame,
displayName,
emotes,
id,
login,
isModerator,
msgId, roomId,
msgId,
roomId,
isSubscriber,
systemMsg,
tmiSent,
Expand Down
Loading
Loading