#state changes back to connecting after ready

22 messages · Page 1 of 1 (latest)

high tigerBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
trim ivy
#

update your discordjs/voice version to latest

#

v0.16

main sundial
#

it is the latest version

#

thats the problem

#
sl4ssh in #yoran-bot-testing triggered /voice.
Connection state changed: signalling
Connection state changed: connecting
Connection state changed: connecting
Connection state changed: connecting
Connection state changed: connecting
Connection state changed: ready
               sl4ssh in #yoran-bot-testing triggered /voice.
Connection state changed: ready
Connection state changed: connecting```
 this is the log
#

so the first trigger is the /join command

#

the first connection state changed happens when i have the second trigger (/play command) and then it gives another ready state and back to connecting

trim ivy
main sundial
#

what do you mean

trim ivy
#

with which intents are you instantiating your bot

main sundial
#

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildVoiceStates,

],

trim ivy
#

i cant open the txt file btw im on my phone, if you could upload code to pastebin or something would be appreciated

#

looks fine to me, what are your dependencies?

main sundial
#

"dependencies": {
"@discordjs/rest": "^2.2.0",
"@discordjs/voice": "^0.14.0",
"axios": "^1.3.4",
"canvas": "^2.11.0",
"chalk": "^5.0.1",
"colors": "^1.4.0",
"colors.js": "^1.2.4",
"cron": "^2.0.0",
"dayjs": "^1.11.7",
"discord": "^0.8.2",
"discord-api-types": "^0.37.71",
"discord-modal": "^1.0.3",
"discord-modals": "^1.3.6",
"discord-rich-presence": "^0.0.8",
"discord.js": "^14.14.1",
"express": "^4.18.2",
"ffmpeg-static": "^5.2.0",
"gm": "^1.25.0",
"image-downloader": "^4.3.0",
"libsodium-wrappers": "^0.7.11",
"node-cron": "^3.0.0",
"strip-ansi": "^7.1.0",
"ytdl-core": "^4.11.5"
},

trim ivy
#

yea you lied to me when you told me you were using latest

#

also my support stops here because this is against TOS

main sundial
#

? what

#

if i reinstall the voice it gives me this one

#

so

#

why wouldnt it not be the latest

trim ivy
#

because you dont know how the node package manager works