discord-player 6.6.5-dev.2 → 6.6.5-dev.3

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
@@ -1259,6 +1259,27 @@ declare class GuildQueue<Meta = unknown> {
1259
1259
  * @param options Join config
1260
1260
  */
1261
1261
  connect(channelResolvable: GuildVoiceChannelResolvable, options?: VoiceConnectConfig): Promise<this>;
1262
+ /**
1263
+ * Enable shuffle mode for this queue
1264
+ * @param dynamic Whether to shuffle the queue dynamically. Defaults to `true`.
1265
+ * Dynamic shuffling will shuffle the queue when the current track ends, without mutating the queue.
1266
+ * If set to `false`, the queue will be shuffled immediately in-place, which cannot be undone.
1267
+ */
1268
+ enableShuffle(dynamic?: boolean): boolean;
1269
+ /**
1270
+ * Disable shuffle mode for this queue.
1271
+ */
1272
+ disableShuffle(): boolean;
1273
+ /**
1274
+ * Toggle shuffle mode for this queue.
1275
+ * @param dynamic Whether to shuffle the queue dynamically. Defaults to `true`.
1276
+ * @returns Whether shuffle is enabled or disabled.
1277
+ */
1278
+ toggleShuffle(dynamic?: boolean): boolean;
1279
+ /**
1280
+ * Whether shuffle mode is enabled for this queue.
1281
+ */
1282
+ get isShuffling(): boolean;
1262
1283
  /**
1263
1284
  * The voice connection latency of this queue
1264
1285
  */
@@ -2738,6 +2759,7 @@ declare class Util {
2738
2759
  static getFetch(): Promise<any>;
2739
2760
  static warn(message: string, code?: string, detail?: string): void;
2740
2761
  static randomChoice<T>(src: T[]): T;
2762
+ static arrayCloneShuffle<T>(src: T[]): T[];
2741
2763
  }
2742
2764
  declare const VALIDATE_QUEUE_CAP: (queue: GuildQueue, items: Playlist | Track | Track[]) => void;
2743
2765