Commit 722f23e
committed
fix(voice): send speaking packet on reconnect (#862)
`AudioPlayer` would previously not update the
[`SPEAKING`](https://discord.com/developers/docs/topics/voice-connections#speaking)
state to a non-zero value after reconnecting (which happens when moving
between channels, for instance). This results in the bot continuing to
send audio packets, which aren't processed by Discord as the speaking
state would still be `0`.1 parent fb1168c commit 722f23e
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
| 693 | + | |
695 | 694 | | |
696 | 695 | | |
697 | 696 | | |
698 | | - | |
699 | 697 | | |
700 | 698 | | |
701 | 699 | | |
| |||
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
713 | | - | |
| 710 | + | |
714 | 711 | | |
715 | 712 | | |
716 | 713 | | |
| |||
724 | 721 | | |
725 | 722 | | |
726 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
727 | 732 | | |
728 | 733 | | |
729 | 734 | | |
| |||
0 commit comments