Skip to content

Multiple VoiceNext Clients

Mateusz Brawański requested to merge github/fork/DrewRidley/master into master

Created by: DrewRidley

Fixed support for multiple VoiceNext clients on the same bot.

Summary

Fixes an issue where VoiceNext does not respect its attached DiscordClient.

Details

Replaced line 91 of VoiceNextExtension to use this.Client instead of channel.Client as (DiscordClient). This fixes an issue where the channel's client may not have been the same client that is associated with the VoiceNext instance, causing the VoiceDispatch update to incorrectly connect a different bot to the voice channel.

Changes proposed

  • Fixed a single offending line; line 91 of VoiceNextExtension.

Merge request reports

Loading