-
-
Notifications
You must be signed in to change notification settings - Fork 485
Open
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triagingvoiceRelated to the voice chat featureRelated to the voice chat feature
Description
Summary
on_voice_state_update fires twice when the bot moves between voice channels
Reproduction Steps
- The bot connects to voice channel
voice 1 - I manually move it to another voice channel
voice 2 - Then I manually move it back to
voice 1
Minimal Reproducible Code
@bot.event
async def on_voice_state_update(member: discord.Member, before: discord.VoiceState, after: discord.VoiceState):
if before.channel and after.channel and before.channel != after.channel:
print(f"{member.nick} entered another channel")
return
if before.channel and after.channel is None:
print(f"{member.nick} has left the voice channel")Expected Results
Bot entered another channel
Bot entered another channel
Actual Results
Bot entered another channel
Bot entered another channel
Bot has left the voice channel
Intents
All
System Information
- Python v3.10.10-final
- py-cord v2.7.1-final
- aiohttp v3.10.8
- system info: Windows 10 10.0.26200Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
The issue only occurs when interacting with a bot. If you move a regular user, everything works correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triagingvoiceRelated to the voice chat featureRelated to the voice chat feature