Makar8000 / ACT-Discord-Triggers

An ACT plugin for routing audio to discord
50 stars 14 forks source link

Unable to join voice channels #74

Closed sspat closed 1 year ago

sspat commented 1 year ago

Describe the issue Without changing anything in ACT, the plugin itself, discord bot settings and the server and channel settings bot stopped being able to connect to voice channels for a couple of days now. Tried doing the whole initial setup process from start, error persists. Tried setting up a brand new server, error persist while trying to join it's voice channels too.

To Reproduce Steps to reproduce the behavior:

  1. Install and activate plugin as described in first-time setup guide
  2. Select discord server, voice channel, and press Connect
  3. Bot joins the channel, but is automatically disconnected from it in about 10 seconds and plays no audio while in the channel

Environment Information:

Additional context ACT version: 3.6.2 Plugin version: 1.0.2.1 Windows version: Windows 11 PRO Other ACT plugins used: ACT_English_Parser.cs

Connect log output:

[Discord] Discord.Net v3.2.1 (API v9)
[Gateway] Connecting
[Gateway] Connected
Bot in ready state. Populating servers...
Found 1 discord server(s).
Found 20 available voice channel(s) for *******
[Gateway] Ready
[Audio #1] Connecting
[Audio #1] Disconnecting
Error joining channel.
The operation has timed out.
Unable to join channel. Does your bot have permission to join this channel?
FrUct1s commented 1 year ago

Same issue - but also on other Plugins like Hojoring / Yukkiri So it's probably a general Discord API problem

System.MissingMethodException - Method not found: 'Void Discord.WebSocket.DiscordSocketConfig.set_GatewayIntents(Discord.GatewayIntents)'.
   at DiscordAPI.DiscordClient.<InIt>d__8.MoveNext()
   at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at DiscordAPI.DiscordClient.InIt(String logintoken)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

DiscordAPI.DiscordClient+<InIt>d__8, DiscordAPI, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null
Nimthiel commented 1 year ago

I'm having a similar issue too, just started last night out of nowhere and still isn't working no matter what I do. I updated the ACT_DiscordTriggers.dll, but nothing. Also during this issue, while it's attempting to connect the "Leave Channel" button is grayed out

image

Makar8000 commented 1 year ago

There may have been some discord update that broke it. I'll see about taking a look this week

ripps818 commented 1 year ago

This issue might be related https://github.com/discord-net/Discord.Net/issues/2634

Makar8000 commented 1 year ago

Thanks for the info. I have fixed this in the latest release