-
Notifications
You must be signed in to change notification settings - Fork 4
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
disconnect automatically when no user in voice #53
Conversation
これは正常な仕様で、エラーなどでbotがサーバから切断された場合は自動で再接続が入るので /join できなくても5秒以内に戻ってくれるしいいだろうと思ってます。 (公式ガイドのワークアラウンドをそのまま実装してます。いい方法があったら教えて欲しい) https://discordjs.guide/voice/voice-connections.html#handling-disconnects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以前に clearTimeout
はサーバ単位で複雑だからいらないと言ってしまったけど, やっぱ必要そう. すみません.
class Player
がサーバ単位で管理されているので, auto disconnect 機能をこっちに移しつつ, 1サーバにつき auto disconnect タイマーが1つしか走らないように変更してもらえると嬉しいです
resolve #21
未対応
ずんだもんをvcから切断するとReconnect処理がはしる。
この時に
/join
すると、ずんだもんがvcにいないのにAlready joined!と表示される。