egebilecen / PZServerDiscordBot

A Project Zomboid Discord Bot written in C# using Discord.NET to manage and execute commands on Project Zomboid Server.
GNU General Public License v3.0
62 stars 11 forks source link

New Issue Starting #51

Closed saro8802 closed 1 year ago

saro8802 commented 1 year ago

Hi man :) i'm getting this error with a new bot, it's important?


Exception: System.Exception Message: WebSocket connection was closed Stack trace: in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in Discord.ConnectionManager.d34.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) in Discord.WebSocket.DiscordSocketClient.d114.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in Discord.ConnectionManager.d31.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in Discord.ConnectionManager.<>cDisplayClass29_0.<b__0>d.MoveNext() Date: 30/12/2022 12:38:20 UTC Bot Version: v1.8.1


Exception: Discord.Net.WebSocketClosedException Message: The server sent close 4014: "Disallowed intent(s)." Stack trace: in Discord.Net.WebSockets.DefaultWebSocketClient.d__34.MoveNext() Date: 30/12/2022 12:38:20 UTC Bot Version: v1.8.1

egebilecen commented 1 year ago

Hey! Did you enable all intents in Discord developer portal? You can find the details in the notes of this section.

saro8802 commented 1 year ago

omg XD you answered too fast ahahha, yes already found and fixed :) ty

egebilecen commented 1 year ago

omg XD you answered too fast ahahha, yes already found and fixed :) ty

No problem. I just happen to be on the computer and received an email, haha.