From 5647bc00063ffbe5391a0b76a0ec9699343bc4d1 Mon Sep 17 00:00:00 2001 From: Matthew Olivo Date: Mon, 22 Jan 2024 20:08:17 -0800 Subject: [PATCH] - Fixing bug with banning user for YouTube --- MixItUp.Base/Services/YouTube/YouTubeChatService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MixItUp.Base/Services/YouTube/YouTubeChatService.cs b/MixItUp.Base/Services/YouTube/YouTubeChatService.cs index dcb90c16c..ff5b5a7c7 100644 --- a/MixItUp.Base/Services/YouTube/YouTubeChatService.cs +++ b/MixItUp.Base/Services/YouTube/YouTubeChatService.cs @@ -267,7 +267,7 @@ public async Task BanUser(UserV2ViewModel user) { if (ServiceManager.Get().IsLive) { - LiveChatBan ban = await this.GetConnection(sendAsStreamer: true).TimeoutChatUser(ServiceManager.Get().Broadcast, new Channel() { Id = user.PlatformID }, duration); + LiveChatBan ban = await this.GetConnection(sendAsStreamer: true).BanChatUser(ServiceManager.Get().Broadcast, new Channel() { Id = user.PlatformID }); if (ban != null) { user.GetPlatformData(StreamingPlatformTypeEnum.YouTube).BanID = ban.Id;