Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave voice channel command no long working since port to V12 #4064

Closed
Fuwn opened this issue Apr 10, 2020 · 3 comments
Closed

Leave voice channel command no long working since port to V12 #4064

Fuwn opened this issue Apr 10, 2020 · 3 comments

Comments

@Fuwn
Copy link

Fuwn commented Apr 10, 2020

I recently switched from 11.6.4 to 12 and due to the changes of Discord.js 12, I can no longer use msg.guilds.voiceChannel.leave() and call it from an external file, I have to use connection.disconnect(). This doesn't work though as if I run the command foo!leave, the connection is undefined because it is located in an external file.

How would I go about fixing this, do I have to grab the connection constant somehow?

@papaia
Copy link
Contributor

papaia commented Apr 10, 2020

Please don't ignore the issue template.
The issue tracker is for bugs, not support, for support head to the Discord server.

Quick answer:
You still could use guild.voice.channel.leave().

@Fuwn
Copy link
Author

Fuwn commented Apr 10, 2020

Please don't ignore the issue template.

The issue tracker is for bugs, not support, for support head to the Discord server.

Quick answer:

You still could use guild.voice.channel.leave().

Real sorry, I am on GitHub mobile and it's still pretty scuffed so many features are missing, thank you though.

@Fuwn Fuwn closed this as completed Apr 10, 2020
@Saikomantisu
Copy link

Try This: message.member.voice.channel.leave()

@discordjs discordjs locked as resolved and limited conversation to collaborators Aug 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants