1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Added an additional step, to ensure a state's entries are cleared even if it doesn't exist. Lol just that comment shows how shitty discord's voice is.

This commit is contained in:
Phxntxm 2017-02-17 22:11:19 -06:00
parent 2e4f006f5f
commit dd3194c314

View file

@ -525,8 +525,9 @@ class Music:
# Stop playing whatever song is playing.
if state.is_playing():
player = state.player
player.stop()
state.player.stop()
state.songs.clear()
# This will stop cancel the audio event we're using to loop through the queue
# Then erase the voice_state entirely, and disconnect from the channel