Skip to content

[Release] V3.4.0 #271

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
11 changes: 5 additions & 6 deletions TwitchLib.Client.Enums/TwitchLib.Client.Enums.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>TwitchLib.Client.Enums</PackageId>
<VersionPrefix>3.3.1</VersionPrefix>
<VersionPrefix>3.4.0</VersionPrefix>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Description>Project containing all of the enums used in TwitchLib.Client.</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>swiftyspiffy, Prom3theu5, Syzuna, LuckyNoS7evin</Authors>
<Company></Company>
<PackageIconUrl>http://swiftyspiffy.com/img/twitchlib.png</PackageIconUrl>
<PackageIconUrl>https://cdn.syzuna-programs.de/images/twitchlib.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/TwitchLib/TwitchLib.Client</PackageProjectUrl>
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl>
<Copyright>Copyright 2021</Copyright>
<Copyright>Copyright 2023</Copyright>
<PackageReleaseNotes>Incremental changes. See commit history.</PackageReleaseNotes>
<RepositoryUrl>https://github.com/TwitchLib/TwitchLib.Client</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>twitch library irc chat c# csharp api events pubsub net standard 2.0</PackageTags>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyVersion>3.3.1</AssemblyVersion>
<FileVersion>3.3.1</FileVersion>
<AssemblyVersion>3.4.0</AssemblyVersion>
<FileVersion>3.4.0</FileVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
</Project>
11 changes: 5 additions & 6 deletions TwitchLib.Client.Models/TwitchLib.Client.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>TwitchLib.Client.Models</PackageId>
<VersionPrefix>3.3.1</VersionPrefix>
<VersionPrefix>3.4.0</VersionPrefix>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Description>Project contains all of the models used in TwitchLib.Client.</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>swiftyspiffy, Prom3theu5, Syzuna, LuckyNoS7evin</Authors>
<Company></Company>
<PackageIconUrl>http://swiftyspiffy.com/img/twitchlib.png</PackageIconUrl>
<PackageIconUrl>https://cdn.syzuna-programs.de/images/twitchlib.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/TwitchLib/TwitchLib.Client</PackageProjectUrl>
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl>
<Copyright>Copyright 2021</Copyright>
<Copyright>Copyright 2023</Copyright>
<PackageReleaseNotes>Incremental changes. See commit history.</PackageReleaseNotes>
<RepositoryUrl>https://github.com/TwitchLib/TwitchLib.Client</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>twitch library irc chat c# csharp api events pubsub net standard 2.0</PackageTags>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyVersion>3.3.1</AssemblyVersion>
<FileVersion>3.3.1</FileVersion>
<AssemblyVersion>3.4.0</AssemblyVersion>
<FileVersion>3.4.0</FileVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions TwitchLib.Client.Test/TwitchLib.Client.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="System.Net.Security" Version="4.3.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 4 additions & 1 deletion TwitchLib.Client/Extensions/AnnoucementExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TwitchLib.Client.Interfaces;
using System;
using TwitchLib.Client.Interfaces;
using TwitchLib.Client.Models;

namespace TwitchLib.Client.Extensions
Expand All @@ -14,6 +15,7 @@ public static class AnnoucementExt
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel object to announce to</param>
/// <param name="message">Message to announce</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.SendChatAnnouncementAsync() instead.")]
public static void Announce(this ITwitchClient client, JoinedChannel channel, string message)
{
client.SendMessage(channel, $".announce {message}");
Expand All @@ -25,6 +27,7 @@ public static void Announce(this ITwitchClient client, JoinedChannel channel, st
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">Channel in string form to send announce to</param>
/// <param name="message">Message to announce</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.SendChatAnnouncementAsync() instead.")]
public static void Announce(this ITwitchClient client, string channel, string message)
{
client.SendMessage(channel, $".announce {message}");
Expand Down
5 changes: 4 additions & 1 deletion TwitchLib.Client/Extensions/BanUserExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TwitchLib.Client.Interfaces;
using System;
using TwitchLib.Client.Interfaces;
using TwitchLib.Client.Models;

namespace TwitchLib.Client.Extensions
Expand All @@ -16,6 +17,7 @@ public static class BanUserExt
/// <param name="viewer">Viewer name to ban</param>
/// <param name="message">Message to accompany the ban and show the user.</param>
/// <param name="dryRun">Indicates a dryrun (will not send if true)</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.BanUserAsync() instead.")]
public static void BanUser(this ITwitchClient client, JoinedChannel channel, string viewer, string message = "", bool dryRun = false)
{
client.SendMessage(channel, $".ban {viewer} {message}");
Expand All @@ -29,6 +31,7 @@ public static void BanUser(this ITwitchClient client, JoinedChannel channel, str
/// <param name="viewer">Viewer name to ban</param>
/// <param name="message">Message to accompany the ban and show the user.</param>
/// <param name="dryRun">Indicates a dryrun (will not send if true)</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.BanUserAsync() instead.")]
public static void BanUser(this ITwitchClient client, string channel, string viewer, string message = "", bool dryRun = false)
{
JoinedChannel joinedChannel = client.GetJoinedChannel(channel);
Expand Down
5 changes: 4 additions & 1 deletion TwitchLib.Client/Extensions/ChangeChatColorExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TwitchLib.Client.Interfaces;
using System;
using TwitchLib.Client.Interfaces;
using TwitchLib.Client.Models;

namespace TwitchLib.Client.Extensions
Expand All @@ -14,6 +15,7 @@ public static class ChangeChatColorExt
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel object representing which channel to send command to.</param>
/// <param name="color">Enum representing available chat preset colors.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateUserChatColorAsync() instead.")]
public static void ChangeChatColor(this ITwitchClient client, JoinedChannel channel, Enums.ChatColorPresets color)
{
client.SendMessage(channel, $".color {color}");
Expand All @@ -25,6 +27,7 @@ public static void ChangeChatColor(this ITwitchClient client, JoinedChannel chan
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representing the channel to send the command to.</param>
/// <param name="color">Enum representing available chat preset colors.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateUserChatColorAsync() instead.")]
public static void ChangeChatColor(this ITwitchClient client, string channel, Enums.ChatColorPresets color)
{
client.SendMessage(channel, $".color {color}");
Expand Down
5 changes: 4 additions & 1 deletion TwitchLib.Client/Extensions/ClearChatExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TwitchLib.Client.Interfaces;
using System;
using TwitchLib.Client.Interfaces;
using TwitchLib.Client.Models;

namespace TwitchLib.Client.Extensions
Expand All @@ -13,6 +14,7 @@ public static class ClearChatExt
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of which channel to send clear chat command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void ClearChat(this ITwitchClient client, JoinedChannel channel)
{
client.SendMessage(channel, ".clear");
Expand All @@ -23,6 +25,7 @@ public static void ClearChat(this ITwitchClient client, JoinedChannel channel)
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of which channel to send clear chat command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void ClearChat(this ITwitchClient client, string channel)
{
client.SendMessage(channel, ".clear");
Expand Down
2 changes: 2 additions & 0 deletions TwitchLib.Client/Extensions/CommercialExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static class CommercialExt
/// <param name="channel">JoinedChannel representation of the channel to send the ad to.</param>
/// <param name="length">Enum representing the length of advertisement should be.</param>
/// <exception cref="ArgumentOutOfRangeException">length - null</exception>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Ads.StartCommercialAsync() instead.")]
public static void StartCommercial(this ITwitchClient client, JoinedChannel channel, Enums.CommercialLength length)
{
switch (length)
Expand Down Expand Up @@ -50,6 +51,7 @@ public static void StartCommercial(this ITwitchClient client, JoinedChannel chan
/// <param name="channel">String representation of the channel to send the ad to.</param>
/// <param name="length">Enum representing the length of advertisement should be.</param>
/// <exception cref="ArgumentOutOfRangeException">length - null</exception>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Ads.StartCommercialAsync() instead.")]
public static void StartCommercial(this ITwitchClient client, string channel, Enums.CommercialLength length)
{
switch (length)
Expand Down
4 changes: 4 additions & 0 deletions TwitchLib.Client/Extensions/DeleteMessageExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static class DeleteMessageExt
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of which channel to send delete message command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void DeleteMessage(this ITwitchClient client, JoinedChannel channel, string messageId)
{
client.SendMessage(channel, $".delete {messageId}");
Expand All @@ -26,6 +27,7 @@ public static void DeleteMessage(this ITwitchClient client, JoinedChannel channe
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of which channel to delete message command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void DeleteMessage(this ITwitchClient client, string channel, string messageId)
{
client.SendMessage(channel, $".delete {messageId}");
Expand All @@ -37,6 +39,7 @@ public static void DeleteMessage(this ITwitchClient client, string channel, stri
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of which channel to send delete message command to.</param>
/// <param name="msg">ChatMessage object representing chat message that should be deleted.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void DeleteMessage(this ITwitchClient client, JoinedChannel channel, ChatMessage msg)
{
client.SendMessage(channel, $".delete {msg.Id}");
Expand All @@ -48,6 +51,7 @@ public static void DeleteMessage(this ITwitchClient client, JoinedChannel channe
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of which channel to delete message command to.</param>
/// <param name="msg">ChatMessage object representing chat message that should be deleted.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Moderation.DeleteChatMessagesAsync() instead.")]
public static void DeleteMessage(this ITwitchClient client, string channel, ChatMessage msg)
{
client.SendMessage(channel, $".delete {msg.Id}");
Expand Down
7 changes: 6 additions & 1 deletion TwitchLib.Client/Extensions/EmoteOnlyExt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TwitchLib.Client.Interfaces;
using System;
using TwitchLib.Client.Interfaces;
using TwitchLib.Client.Models;

namespace TwitchLib.Client.Extensions
Expand All @@ -13,6 +14,7 @@ public static class EmoteOnlyExt
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of the channel to send the enable emote only command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void EmoteOnlyOn(this ITwitchClient client, JoinedChannel channel)
{
client.SendMessage(channel, ".emoteonly");
Expand All @@ -23,6 +25,7 @@ public static void EmoteOnlyOn(this ITwitchClient client, JoinedChannel channel)
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of the channel to send the enable emote only command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void EmoteOnlyOn(this ITwitchClient client, string channel)
{
client.SendMessage(channel, ".emoteonly");
Expand All @@ -33,6 +36,7 @@ public static void EmoteOnlyOn(this ITwitchClient client, string channel)
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of the channel to send the disable emote only command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void EmoteOnlyOff(this ITwitchClient client, JoinedChannel channel)
{
client.SendMessage(channel, ".emoteonlyoff");
Expand All @@ -43,6 +47,7 @@ public static void EmoteOnlyOff(this ITwitchClient client, JoinedChannel channel
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of the channel to send the disable emote only command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void EmoteOnlyOff(this ITwitchClient client, string channel)
{
client.SendMessage(channel, ".emoteonlyoff");
Expand Down
4 changes: 4 additions & 0 deletions TwitchLib.Client/Extensions/FollowersOnlyExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static class FollowersOnlyExt
/// <param name="channel">JoinedChannel object representing which channel to send command to.</param>
/// <param name="requiredFollowTime">Amount of time required to pass before a viewer can chat. Maximum is 3 months (90 days).</param>
/// <exception cref="TwitchLib.Client.Exceptions.InvalidParameterException">The amount of time required to chat exceeded the maximum allowed by Twitch, which is 3 months.</exception>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void FollowersOnlyOn(this ITwitchClient client, JoinedChannel channel, TimeSpan requiredFollowTime)
{
if (requiredFollowTime > TimeSpan.FromDays(MaximumDurationAllowedDays))
Expand All @@ -40,6 +41,7 @@ public static void FollowersOnlyOn(this ITwitchClient client, JoinedChannel chan
/// <param name="channel">String representing the channel to send the command to.</param>
/// <param name="requiredFollowTime">Amount of time required to pass before a viewer can chat. Maximum is 3 months (90 days).</param>
/// <exception cref="TwitchLib.Client.Exceptions.InvalidParameterException">The amount of time required to chat exceeded the maximum allowed by Twitch, which is 3 months.</exception>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void FollowersOnlyOn(this ITwitchClient client, string channel, TimeSpan requiredFollowTime)
{
if (requiredFollowTime > TimeSpan.FromDays(MaximumDurationAllowedDays))
Expand All @@ -55,6 +57,7 @@ public static void FollowersOnlyOn(this ITwitchClient client, string channel, Ti
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">JoinedChannel representation of channel to send command to</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void FollowersOnlyOff(this ITwitchClient client, JoinedChannel channel)
{
client.SendMessage(channel, ".followersoff");
Expand All @@ -65,6 +68,7 @@ public static void FollowersOnlyOff(this ITwitchClient client, JoinedChannel cha
/// </summary>
/// <param name="client">Client reference used to identify extension.</param>
/// <param name="channel">String representation of which channel to send the command to.</param>
[Obsolete("Usage of this command through chat is not possible anymore. Use TwitchLib.Api.Helix.Chat.UpdateChatSettingsAsync() instead.")]
public static void FollowersOnlyOff(this TwitchClient client, string channel)
{
client.SendMessage(channel, ".followersoff");
Expand Down
Loading
Loading