Skip to content

Commit

Permalink
- Fixing bug with banning user for YouTube
Browse files Browse the repository at this point in the history
  • Loading branch information
SaviorXTanren committed Jan 23, 2024
1 parent e6190bc commit 5647bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MixItUp.Base/Services/YouTube/YouTubeChatService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public async Task<LiveChatBan> BanUser(UserV2ViewModel user)
{
if (ServiceManager.Get<YouTubeSessionService>().IsLive)
{
LiveChatBan ban = await this.GetConnection(sendAsStreamer: true).TimeoutChatUser(ServiceManager.Get<YouTubeSessionService>().Broadcast, new Channel() { Id = user.PlatformID }, duration);
LiveChatBan ban = await this.GetConnection(sendAsStreamer: true).BanChatUser(ServiceManager.Get<YouTubeSessionService>().Broadcast, new Channel() { Id = user.PlatformID });
if (ban != null)
{
user.GetPlatformData<YouTubeUserPlatformV2Model>(StreamingPlatformTypeEnum.YouTube).BanID = ban.Id;
Expand Down

0 comments on commit 5647bc0

Please sign in to comment.