diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 18:14:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 18:14:07 +0100 |
| commit | fc5e0f48477366641b97efb0541053cc1e061be5 (patch) | |
| tree | 99ad0352552a0eebc527f3184a11ad2e7676ffea /src/commands/utilities.rs | |
| parent | silence songbird udp_rx decode noise (diff) | |
| download | senator-sperma-fc5e0f48477366641b97efb0541053cc1e061be5.tar.gz senator-sperma-fc5e0f48477366641b97efb0541053cc1e061be5.zip | |
music: add per-guild queue with now/next/last, skip and queue
Tracks are queued in memory per guild, defaulting to append (last).
Playback auto-advances on TrackEvent::End/Error with a per-track token
so manual stops and skips cannot double-advance. /music queue shows the
current track followed by pending items. /stop clears the queue.
Cron audio now goes through the same MusicState instead of poking the
track-handle map directly.
Diffstat (limited to 'src/commands/utilities.rs')
| -rw-r--r-- | src/commands/utilities.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs index 87a5089..25d4bcf 100644 --- a/src/commands/utilities.rs +++ b/src/commands/utilities.rs | |||
| @@ -2,7 +2,7 @@ use poise::serenity_prelude as serenity; | |||
| 2 | use tracing::warn; | 2 | use tracing::warn; |
| 3 | 3 | ||
| 4 | use super::autocomplete::any_file; | 4 | use super::autocomplete::any_file; |
| 5 | use super::music::sanitize_yt_url; | 5 | use crate::music::sanitize_yt_url; |
| 6 | use crate::Data; | 6 | use crate::Data; |
| 7 | use crate::copyparty::{html_decode, percent_decode}; | 7 | use crate::copyparty::{html_decode, percent_decode}; |
| 8 | use crate::error::{Error, Result}; | 8 | use crate::error::{Error, Result}; |
