You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I recently switched from
11.6.4
to12
and due to the changes of Discord.js12
, I can no longer usemsg.guilds.voiceChannel.leave()
and call it from an external file, I have to useconnection.disconnect()
. This doesn't work though as if I run the commandfoo!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?
The text was updated successfully, but these errors were encountered: