From 9b3a0c3768cb6c0b96d138f69622c96ee863d42e Mon Sep 17 00:00:00 2001 From: AoshiW Date: Tue, 28 Nov 2023 21:38:49 +0100 Subject: [PATCH] `SendMessage` => `SendMessageAsync` --- TwitchLib.Client/Interfaces/ITwitchClient.cs | 4 ++-- TwitchLib.Client/TwitchClient.cs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/TwitchLib.Client/Interfaces/ITwitchClient.cs b/TwitchLib.Client/Interfaces/ITwitchClient.cs index 54d0d040..dde4f5ff 100644 --- a/TwitchLib.Client/Interfaces/ITwitchClient.cs +++ b/TwitchLib.Client/Interfaces/ITwitchClient.cs @@ -402,7 +402,7 @@ public interface ITwitchClient /// The channel. /// The message. /// if set to true [dry run]. - void SendMessage(JoinedChannel channel, string message, bool dryRun = false); + Task SendMessageAsync(JoinedChannel channel, string message, bool dryRun = false); /// /// Sends the message. @@ -410,7 +410,7 @@ public interface ITwitchClient /// The channel. /// The message. /// if set to true [dry run]. - void SendMessage(string channel, string message, bool dryRun = false); + Task SendMessageAsync(string channel, string message, bool dryRun = false); /// /// Sends a formatted Twitch chat message reply. diff --git a/TwitchLib.Client/TwitchClient.cs b/TwitchLib.Client/TwitchClient.cs index 42f7357e..27d01198 100644 --- a/TwitchLib.Client/TwitchClient.cs +++ b/TwitchLib.Client/TwitchClient.cs @@ -446,15 +446,16 @@ private void SendTwitchMessage(JoinedChannel channel, string message, string rep } /// - public void SendMessage(JoinedChannel channel, string message, bool dryRun = false) + public Task SendMessageAsync(JoinedChannel channel, string message, bool dryRun = false) { SendTwitchMessage(channel, message,null, dryRun); + return Task.CompletedTask; } /// - public void SendMessage(string channel, string message, bool dryRun = false) + public Task SendMessageAsync(string channel, string message, bool dryRun = false) { - SendMessage(GetJoinedChannel(channel), message, dryRun); + return SendMessageAsync(GetJoinedChannel(channel), message, dryRun); } ///