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'm trying to do a check to see if the person requesting the command is in a voice channel with the bot. But when I have the bot running for about ~20 hours, getVoiceConnection starts returning the channel the bot was once on a long time ago, not the channel it's currently on.
Steps to reproduce:
I don`t know how to reproduce. I can guess that this is due to packet loss at some point and the "map" where voiceConnection is stored is not cleared.
The VoiceConnection is the right one. Your assumption of <VoiceConnection>.joinConfig.channelId being the channel the bot currently is in is wrong though. It‘s the channelId used to initially connect/join.
To find the channel the bot currently is in you‘d simply use <Guild>.members.me.voice.channelId.
Which package is this bug report for?
voice
Issue description
I'm trying to do a check to see if the person requesting the command is in a voice channel with the bot. But when I have the bot running for about ~20 hours, getVoiceConnection starts returning the channel the bot was once on a long time ago, not the channel it's currently on.
Steps to reproduce:
I don`t know how to reproduce. I can guess that this is due to packet loss at some point and the "map" where voiceConnection is stored is not cleared.
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
User, Channel, GuildMember, Message
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildVoiceStates, GuildPresences, GuildMessages, DirectMessages, DirectMessageTyping, MessageContent
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: