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

Update communication lib #248

Merged
merged 1 commit into from
Sep 16, 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
25 changes: 0 additions & 25 deletions TwitchLib.Client/Interfaces/ITwitchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,16 +412,6 @@ public interface ITwitchClient
/// <param name="dryRun">if set to <c>true</c> [dry run].</param>
void SendMessage(string channel, string message, bool dryRun = false);


/// <summary>
/// Sends a formatted Twitch chat message reply.
/// </summary>
/// <param name="channel">Channel to send Twitch chat reply to</param>
/// <param name="replyToId">The message id that is being replied to</param>
/// <param name="message">Reply contents</param>
/// <param name="dryRun">if set to <c>true</c> [dry run]</param>
void SendReply(JoinedChannel channel, string replyToId, string message, bool dryRun = false);

/// <summary>
/// Sends a formatted Twitch chat message reply.
/// </summary>
Expand All @@ -431,15 +421,6 @@ public interface ITwitchClient
/// <param name="dryRun">if set to <c>true</c> [dry run]</param>
Task SendReplyAsync(JoinedChannel channel, string replyToId, string message, bool dryRun = false);

/// <summary>
/// SendReply wrapper that accepts channel in string form.
/// </summary>
/// <param name="channel">Channel to send Twitch chat reply to</param>
/// <param name="replyToId">The message id that is being replied to</param>
/// <param name="message">Reply contents</param>
/// <param name="dryRun">if set to <c>true</c> [dry run]</param>
void SendReply(string channel, string replyToId, string message, bool dryRun = false);

/// <summary>
/// SendReply wrapper that accepts channel in string form.
/// </summary>
Expand All @@ -449,12 +430,6 @@ public interface ITwitchClient
/// <param name="dryRun">if set to <c>true</c> [dry run]</param>
Task SendReplyAsync(string channel, string replyToId, string message, bool dryRun = false);

/// <summary>
/// Sends the queued item.
/// </summary>
/// <param name="message">The message.</param>
void SendQueuedItem(string message);

/// <summary>
/// Sends the queued item.
/// </summary>
Expand Down
19 changes: 0 additions & 19 deletions TwitchLib.Client/TwitchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,25 +462,13 @@ public void SendMessage(string channel, string message, bool dryRun = false)
SendMessage(GetJoinedChannel(channel), message, dryRun);
}

/// <inheritdoc />
public void SendReply(JoinedChannel channel, string replyToId, string message, bool dryRun = false)
{
SendReplyAsync(channel, replyToId, message, dryRun).GetAwaiter().GetResult();
}

/// <inheritdoc />
public Task SendReplyAsync(JoinedChannel channel, string replyToId, string message, bool dryRun = false)
{
SendTwitchMessage(channel, message, replyToId, dryRun);
return Task.CompletedTask;
}

/// <inheritdoc />
public void SendReply(string channel, string replyToId, string message, bool dryRun = false)
{
SendReplyAsync(channel, replyToId, message, dryRun).GetAwaiter().GetResult();
}

/// <inheritdoc />
public Task SendReplyAsync(string channel, string replyToId, string message, bool dryRun = false)
{
Expand Down Expand Up @@ -1267,12 +1255,6 @@ private Task UnaccountedFor(string ircString)
return Task.CompletedTask;
}

/// <inheritdoc/>
public void SendQueuedItem(string message)
{
SendQueuedItemAsync(message).GetAwaiter().GetResult();
}

/// <inheritdoc />
public Task SendQueuedItemAsync(string message)
{
Expand Down Expand Up @@ -1301,4 +1283,3 @@ protected static void HandleNotConnected()
}
}
}
//1487
2 changes: 1 addition & 1 deletion TwitchLib.Client/TwitchLib.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="TwitchLib.Communication" Version="2.0.0-preview-d9bdf98197f77d62ae5d8774a3fef0c97ba71849" />
<PackageReference Include="TwitchLib.Communication" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TwitchLib.Client.Enums\TwitchLib.Client.Enums.csproj" />
Expand Down
Loading