samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Check If Channel is a Queue on User Join/Leave 🧱 #19

Closed samuelsogbesan closed 3 years ago

samuelsogbesan commented 3 years ago

Change the if/else conditions in the voiceStateUpdate hook. We now rely on the isChannelQueue method to determine if the joined queue is a channel.

We also have to check if oldChannel.channel is null since it is possible the user hadn't joined a channel before joining queue channel.

There will be a merge conflict with #9 but they're separate functionalities so it should be fine.