Koenie06 / Discord.js-Music

19 stars 13 forks source link

connection was failed to connect to vc #6

Closed idk-pixel closed 2 years ago

idk-pixel commented 2 years ago

node:internal/process/promises:246 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Connection was failed to connect to VC".] { code: 'ERR_UNHANDLED_REJECTION' } PS C:

Koenie06 commented 2 years ago

May i see your code?

idk-pixel commented 2 years ago

May i see your code?

I fixed itz thanks for your so awesome package!

Victor-Edward commented 2 years ago

How do you fixed? I got the same problem

Victor-Edward commented 2 years ago

Nvm I managed to fix by removing my commands to join the voice channel.

idk-pixel commented 2 years ago

Sorry I was asleep. Glad to hear you've fixed the issue

On Tue, Oct 12, 2021, 5:07 AM Victor Edward @.***> wrote:

Nvm I managed to fix by removing my commands to join the voice channel.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Koenie06/Discord.js-Music/issues/6#issuecomment-940863325, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFJALQMJ4GQKHMHIDF3WP3UGQCGJANCNFSM5FYSHXKA .

TheCodeHeist commented 2 years ago

I got that same issue, but I fixed that by adding a particular Intent to the bot client

const bot = new DiscordJS.Client({
  intents: [
    Intents.FLAGS.GUILD_VOICE_STATES,
  ]
});

This worked perfectly!

CuongVnZ commented 2 years ago

May i see your code?

I fixed itz thanks for your so awesome package!

So how do you fixed, I have the same now...

TheCodeHeist commented 2 years ago

May i see your code?

I fixed itz thanks for your so awesome package!

So how do you fixed, I have the same now...

Have you tried my one?

idk-pixel commented 2 years ago

On an error, so a .catch, disconnect the jmbot from the vc :)Sent from my T-Mobile 4G LTE Device -------- Original message --------From: Cuong Nguyen @.> Date: 10/26/21 10:25 PM (GMT-06:00) To: "Koenie06/Discord.js-Music" @.> Cc: ":)" @.>, Author @.> Subject: Re: [Koenie06/Discord.js-Music] connection was failed to connect to vc (#6)

May i see your code?

I fixed itz thanks for your so awesome package!

So how do you fixed, I have the same now...

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

CuongVnZ commented 2 years ago

May i see your code?

I fixed itz thanks for your so awesome package!

So how do you fixed, I have the same now...

Have you tried my one?

I fixed by your method, thank you !

TheCodeHeist commented 2 years ago

May i see your code?

I fixed itz thanks for your so awesome package!

So how do you fixed, I have the same now...

Have you tried my one?

I fixed by your method, thank you !

Sounds great!