-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Feature: Add a command to force bot to disconnect #1185
Comments
Hi, Bit late, but I've coded something in that accomplishes this goal. `import { Message } from "discord.js"; export default {
} In your /locales/en.json, add this:
|
Are you able to reproduce that issue or send some logs after it happens? |
Updated code in case anyone needs. Thanks to @zPanic for the original code. /commands/leave.ts:
/locales/en.json, add:
|
what i need to do after all for that command work? |
Is your feature request related to a problem? Please describe.
Sometimes, the bot just won't leave after the timeout period is over and no music is being played. Rather than having a bot online even when no one is in the voice call, there should be a command to forcefully disconnect the bot.
Describe the solution you'd like
Like [prefix]play or [prefix]ping, [prefix]leave should disconnect the bot.
Describe alternatives you've considered
Restarting the npm service, but it's not as user-friendly and requires admin access to the console.
The text was updated successfully, but these errors were encountered: