magmastream 2.9.0-dev.45 → 2.9.0-dev.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -2719,7 +2719,7 @@ declare class Player {
|
|
|
2719
2719
|
* @throws {RangeError} If no voice channel has been set.
|
|
2720
2720
|
* @returns {void}
|
|
2721
2721
|
*/
|
|
2722
|
-
connect():
|
|
2722
|
+
connect(): void;
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Disconnects the player from the voice channel.
|
|
2725
2725
|
* @returns {this} The player instance.
|
|
@@ -1031,6 +1031,7 @@ class Manager extends events_1.EventEmitter {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
player.voiceState.sessionId = update.session_id;
|
|
1033
1033
|
player.voiceChannelId = update.channel_id;
|
|
1034
|
+
player.options.voiceChannelId = update.channel_id;
|
|
1034
1035
|
return;
|
|
1035
1036
|
}
|
|
1036
1037
|
this.emit(Enums_1.ManagerEventTypes.PlayerDisconnect, player, player.voiceChannelId);
|
|
@@ -162,7 +162,7 @@ class Player {
|
|
|
162
162
|
* @throws {RangeError} If no voice channel has been set.
|
|
163
163
|
* @returns {void}
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
connect() {
|
|
166
166
|
// Check if the voice channel has been set.
|
|
167
167
|
if (!this.voiceChannelId) {
|
|
168
168
|
throw new RangeError("No voice channel has been set. You must use the `setVoiceChannelId()` method to set the voice channel before connecting.");
|