Skip to content

Releases

v0.14.4

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:22
wavemelo v0.14.4: zero-OAuth PO Token sidecar

Adds yt-potoken (mints poToken/visitorData via BotGuard, no OAuth), pot-init
(renders plugins.youtube.pot before boot, always exits 0) and pot-refresh
(re-mints and hot-swaps through POST /youtube).

Measured result: the token is applied but unlocks no Opus on this IP. WEB
serves SABR-only, so a same-node A/B resolves 1/10 with and 1/10 without it,
muxed itag=18 either way. Audio is unchanged from 0.14.3.
See docs/releases/v0.14.4.md.

v0.14.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 11:02
wavemelo v0.14.3

Playback reliability.

Transitions no longer stall for 4-5 seconds on the common path. The delay
was never the queue: a clean TrackEnd -> TrackStart pair measures 0-7 ms,
and every multi-second gap followed an "All clients failed to load the item"
exception while the YouTube plugin walked its client list. Clients are now
ordered by measured capability (MWEB first), the two that require a
credential or resolve nothing are gone, and MUSIC is pinned to metadata only.

Mid-track drops are reduced with buffer headroom on the muxed itag=18 stream,
and silent stalls are now attributable from logs that name the track and
exception cause.

Repeat mode tops its buffer up from the queue Lavalink has already advanced,
so a late or duplicate TrackEnd can no longer add an extra copy or fall
through to the next real queue entry.

v0.14.2

Choose a tag to compare

@prxmel4 prxmel4 released this 29 Nov 08:01

wavemelo v0.14.2

Highlights

  • Fixes a live /queue failure where Discord rejected the reply with
    HTTP 400 COMPONENT_CUSTOM_ID_DUPLICATED (error code 50035).
  • Every pagination button now carries its action slot in the custom_id, so
    First / Previous / Next / Last can never collide, even when they all point at
    the same page.
  • New regression tests pin the fix across one-page, first-page, middle-page, and
    last-page states.

Fixed

  • /queue pagination rendered custom_ids that encoded only the destination
    page:

    wavemelo:queue:<guild>:<page>
    

    On a queue with a single page (including an empty queue) all four buttons
    resolved to page 1 and produced the same string. Discord forbids duplicate
    custom_ids within one message β€” disabled buttons included β€” so the entire
    reply was rejected with:

    { "code": 50035, "message": "Invalid Form Body",
      "errors": { "components": { "0": { "components": {
        "2": { "custom_id": { "_errors": [
          { "code": "COMPONENT_CUSTOM_ID_DUPLICATED" } ] } },
        "3": { "custom_id": { "_errors": [
          { "code": "COMPONENT_CUSTOM_ID_DUPLICATED" } ] } } } } } } }
  • The rendered ID now includes the navigation slot:

    wavemelo:queue:<guild>:<first|prev|next|last>:<page>
    

    page is the page that was on screen, so a row is unique by construction:
    one slot per button, one page per row. Length stays far below Discord's
    100-character cap.

  • parse_queue_custom_id accepts the five-field shape and rejects the previous
    four-field shape, unknown action slots (skip, pp, ...), trailing fields,
    non-canonical numbers, and oversized IDs.

  • Navigation resolves the destination from the action slot plus the rendered
    page against the freshly collected page count. A queue that shrank between
    render and click clamps into range instead of requesting a page that no
    longer exists.

  • Audited every other component builder: Now Playing controls
    (/nowplaying) already embed a distinct operation code per button, and
    /history renders no components. /queue was the only affected surface.

Added

  • QueueAction enum (First, Prev, Next, Last) and
    queue_target_page, both pure and unit-tested.
  • queue_custom_id and parse_queue_custom_id now include the action slot.
  • Regression tests that serialize the rendered action rows with
    serde_json and assert the custom_ids Discord actually receives are
    strictly unique:
    • ui::components::tests::queue_custom_ids_are_unique_for_every_page_state
    • ui::components::tests::queue_custom_ids_encode_their_action_slot
    • ui::components::tests::queue_actions_resolve_into_bounds
    • ui::components::tests::queue_ids_round_trip_and_reject_malformed_input

Compatibility

  • Old queue messages rendered by v0.14.1 and earlier carry the four-field
    custom_id and are now rejected as malformed. Re-running /queue renders
    fresh buttons; no other interaction breaks.
  • Interaction acknowledgements, guild binding, and permission checks are
    unchanged.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked 125 passed, 0 failed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Thai scan src/ 0 matches
Production panics .unwrap()/.expect()/panic!/todo!()/unsafe outside #[cfg(test)] 0

Live failure replay

Destination page per button (First, Previous, Next, Last), guild id omitted:

Page state Previous Now (slot + page)
1 page of 1 1, 0, 1, 1 first:1, prev:1, next:1, last:1
Page 1 of 2 1, 0, 2, 2 first:1, prev:1, next:1, last:1
Page 2 of 2 1, 1, 2, 2 first:2, prev:2, next:2, last:2
Page 1 of 3 1, 0, 2, 3 first:1, prev:1, next:1, last:1
Page 2 of 3 1, 1, 3, 3 first:2, prev:2, next:2, last:2
Page 3 of 3 1, 2, 3, 3 first:3, prev:3, next:3, last:3

The reported payload (components.2 and components.3 duplicated) matches the
one-page case, where three of the four buttons collapse onto page 1. The
previous encoding also emitted the out-of-range page 0 for Previous on the
first page.

Only the new encoding is accepted by the parser, and only the new encoding is
ever rendered.

Upgrade instructions

Restart the bot. No configuration, Lavalink, or Docker changes are required.
Existing /queue messages keep working after the next /queue invocation.

Known limitations

  • Buttons are still disabled rather than removed at the ends of the range, so a
    one-page queue shows four disabled buttons. This is intentional: the IDs are
    unique and the layout stays stable across page changes.
  • Queue pagination remains stateless. A page number is re-resolved on every
    click against the live queue, so a heavily mutated queue lands on the nearest
    valid page rather than the exact position the user saw earlier.

wavemelo v0.14.1

Choose a tag to compare

@prxmel4 prxmel4 released this 29 Nov 03:25

wavemelo v0.14.1

Highlights

  • Fixes a live-tested /lyrics failure where YouTube tracks returned "No
    lyrics found" even though the song exists on LRCLIB.
  • YouTube channel suffixes (VEVO, - Topic) and upload decorations
    ((Visualizer), (Official Video), (Official Audio), [Lyrics], …) are
    cleaned from the metadata before every lookup.
  • A search fallback catches Artist - Title uploads that never match LRCLIB's
    exact get endpoint.

Fixed

  • /lyrics on YouTube sources sent raw video metadata to LRCLIB. A track such
    as Steve Lacy - oh yeah? (Visualizer) by channel SteveLacyVEVO produced a
    404 even though oh yeah? by Steve Lacy is in the catalogue.
  • src/lyrics.rs now cleans metadata before the request:
    • clean_youtube_title repeatedly removes trailing bracketed groups whose
      contents are known upload noise, so (Official Music Video) [HD]
      collapses fully. Meaningful parentheses ((Live), (feat. …),
      (I Can't Get No) Satisfaction) are preserved.
    • clean_youtube_artist drops - Topic and VEVO suffixes, and leaves a
      channel literally named VEVO intact.
    • clean_youtube_metadata compares the Artist - Title prefix against the
      cleaned artist on alphanumerics only, so a squashed SteveLacyVEVO still
      matches Steve Lacy. When they match, the title is reduced to oh yeah?
      and the spaced artist form from the title is preferred.
  • Lookup is now two-stage: the exact track_name + cleaned artist_name
    request is tried first, then /api/search?q=<cleaned title> on 404.
    select_search_result takes the first usable hit, skipping entries with
    neither lyrics nor an instrumental flag.
  • Input consisting only of noise tags ((Official Video)) still fails with the
    existing InvalidQuery error instead of querying LRCLIB with an empty title.

Added

  • LyricsQuery, clean_youtube_metadata, clean_youtube_title,
    clean_youtube_artist, normalize_whitespace, and select_search_result
    as public, pure helpers in src/lyrics.rs.
  • LRCLIB_SEARCH_URL constant for the search endpoint.

Security and integrity

  • The search fallback reuses the same reqwest client, 8-second timeout, and
    identifying User-Agent; no new network surface or credential is added.
  • Query values are passed through reqwest's query encoder, so cleaned titles
    cannot inject additional parameters.
  • Cleaning is UTF-8 safe: suffix checks verify is_char_boundary before
    slicing, and bracket parsing iterates on characters rather than bytes.
  • Non-2xx responses other than 404/429 still map to a generic user message;
    no upstream body or URL is echoed to Discord.
  • No Thai characters were introduced into src/ (enforced by the existing
    utils::source_contains_no_thai_characters gate).

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked 122 passed, 0 failed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Thai scan src/ 0 matches
Production panics .unwrap()/.expect()/panic!/todo!()/unsafe outside #[cfg(test)] 0

Live verification

The real report was replayed against lrclib.net through LyricsClient::fetch:

Input title Input artist Cleaned query Result
Steve Lacy - oh yeah? (Visualizer) SteveLacyVEVO oh yeah? / Steve Lacy found, 580 bytes
oh yeah? (Official Audio) Steve Lacy - Topic oh yeah? / Steve Lacy found, 580 bytes

Before this change the raw titles produced no exact match; the cleaned metadata
resolves on the first get request.

New tests in this release

  • lyrics::clean_youtube_metadata_handles_steve_lacy_visualizer
  • lyrics::clean_youtube_metadata_strips_topic_channels
  • lyrics::clean_youtube_title_removes_common_decorations
  • lyrics::clean_youtube_title_keeps_meaningful_parentheses
  • lyrics::clean_youtube_metadata_keeps_hyphenated_titles_without_artist_match
  • lyrics::clean_youtube_artist_removes_vevo_and_topic_only
  • lyrics::clean_youtube_metadata_leaves_ordinary_queries_untouched
  • lyrics::clean_youtube_metadata_normalizes_whitespace_and_unicode
  • lyrics::clean_youtube_metadata_rejects_noise_only_titles
  • lyrics::select_search_result_skips_empty_entries_and_returns_first_hit
  • lyrics::select_search_result_handles_empty_and_malformed_bodies
  • lyrics::select_search_result_accepts_instrumental_records

Upgrade instructions

Restart the bot. No configuration, Lavalink, or Docker changes are required,
and LRCLIB remains keyless.

Known limitations

  • Cleaning targets common English upload decorations. Non-English decorations
    that are not in the noise list are left in place, so the exact lookup may
    still miss and the search fallback must compensate.
  • A squashed channel name can only be respaced when the title repeats the
    artist as Artist - Title; otherwise the artist is matched in its channel
    form, which the search fallback handles by omitting it.
  • The search fallback takes LRCLIB's first usable hit. For very generic titles
    this can occasionally select a different recording of the same song.

wavemelo v0.14.0

Choose a tag to compare

@prxmel4 prxmel4 released this 29 Nov 02:56

wavemelo v0.14.0

Highlights

  • /lyrics shows lyrics for the current track or any Artist - Title query,
    powered by the keyless LRCLIB service.
  • The new /help command lists every command grouped by category, generated
    from the live command registry so it never drifts.
  • Lyrics requests are isolated behind a shared, timeout-bounded HTTP client and
    never block a slash-command reply.

Added

  • /lyrics [query] slash command (guild only). With no argument it uses the
    currently playing track's title and artist; otherwise a Artist - Title
    query is split into track and artist.
  • src/lyrics.rs with a reusable LyricsClient (shared connection pool,
    8-second timeout, identifying User-Agent) plus pure, deterministic helpers:
    parse_record, strip_sync_timestamps, chunk_lyrics, and parse_query.
  • /help slash command that renders a single embed with one field per
    category (Playback, Queue, Voice, Settings, Utility).
  • BotError::Lyrics variant with a safe, user-facing message; the underlying
    detail is never surfaced to users.

Changed

  • BotData now carries a LyricsClient built once at startup.
  • Lyrics are rendered across up to ten embeds, each within Discord's 4096
    character description limit; the source is attributed in the footer.
  • Plain lyrics are preferred; synced lyrics are used as a fallback with
    [MM:SS.xx] timestamps stripped, preserving the original language and
    non-timestamp labels such as [Chorus].
  • 404 yields a friendly "not found" reply and 429 asks the user to retry
    shortly instead of raising an internal error.

Security and integrity

  • All network access goes through a single reqwest client with an 8-second
    timeout, so a slow or hostile upstream cannot stall command handling.
  • Non-2xx responses other than 404/429 map to a generic user message; no
    upstream body, URL, or credential is echoed back to Discord.
  • Error strings are generated from reqwest::Error type predicates rather
    than raw messages, avoiding leaking host or header details.
  • Chunking is UTF-8 boundary-safe, so no multibyte character is ever split.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked 110 passed, 0 failed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Thai scan src/ 0 matches
Production panics .unwrap()/.expect()/panic!/todo!/unsafe outside #[cfg(test)] 0

New tests in this release

  • lyrics::parse_record_extracts_canonical_fields
  • lyrics::parse_record_falls_back_to_synced_lyrics
  • lyrics::parse_record_accepts_instrumental_with_empty_lyrics
  • lyrics::parse_record_rejects_responses_without_text
  • lyrics::strip_sync_timestamps_preserves_language_and_labels
  • lyrics::chunk_lyrics_fits_within_limit_and_respects_lines
  • lyrics::chunk_lyrics_splits_long_lines_safely
  • lyrics::chunk_lyrics_handles_unicode_boundaries
  • lyrics::chunk_lyrics_returns_empty_for_empty_input
  • lyrics::parse_query_splits_artist_and_title
  • lyrics::parse_query_falls_back_to_plain_track
  • lyrics::embed_limit_leaves_headroom_for_discord_cap

Upgrade instructions

Restart the bot to register /lyrics and /help. No configuration, Lavalink,
or Docker changes are required, and no API keys are needed β€” LRCLIB is keyless.

Known limitations

  • Lyrics depend on LRCLIB's catalogue; obscure or unreleased tracks may be
    missing. Instrumental tracks are detected and reported without lyric text.
  • Only plain-text lyrics are displayed; synchronized playback of per-line
    timestamps is not implemented and timestamps are stripped.
  • Synced-only entries fall back to plain text, so exact line breaks mirror the
    LRCLIB record.

wavemelo v0.13.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 15:04

wavemelo v0.13.0

Highlights

  • /autoplay keeps the music going by resolving related tracks when a track
    finishes naturally with an empty queue and no loop mode active.
  • YouTube Mix playlists are the primary source, with a ytsearch: fallback;
    recently played identifiers are never repeated.
  • Autoplay resolution runs in a cancellable background task so manual commands
    always take precedence and no failure loop can run indefinitely.

Added

  • /autoplay slash command (same-voice authorization) toggles per-guild
    autoplay. Enabling resets the failure budget; disabling cancels any pending
    task.
  • src/audio/autoplay.rs with pure, deterministic helpers: video_id,
    mix_url, search_fallback, should_autoplay, pick_candidate, dedupe,
    and loaded_candidates, plus a cancellable AutoplayControl task slot.
  • recent_identifiers in guild state: a bounded, deduplicated history of track
    identifiers recorded on every on_track_start, used to skip the Mix seed
    video and recently played songs.
  • autoplay_failures counter: after three consecutive resolution failures
    autoplay pauses itself until re-enabled.

Changed

  • on_track_end spawns related-track resolution only for Finished ends with
    an empty queue and loop mode Off; all resolution happens after the event
    handler yields, so no network I/O blocks Lavalink's dispatcher.
  • The final play_now acquires the shared per-guild operation lock and
    re-verifies autoplay state, generation, loop mode, queue, and dedup history,
    so user actions during resolution always win.
  • /play, /skip, /stop, forced voice disconnects, and
    GuildStateRegistry::remove cancel any pending autoplay task.
  • /247 remains authoritative: idle disconnect cleanup cancels autoplay too.

Security and integrity

  • video_id accepts only known YouTube hosts and validates the 11-character
    ID character set, preventing query injection into the Mix URL.
  • Bounded histories (20 entries) and a bounded failure budget prevent
    unbounded memory growth and infinite retry loops.
  • Every play decision re-checks the generation token and playback state under
    the guild operation lock.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked 98 passed, 0 failed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Thai scan src/ 0 matches
Production panics .unwrap()/.expect()/panic!/todo!/unsafe outside #[cfg(test)] 0

New tests in this release

  • audio::autoplay::video_id_accepts_standard_urls_and_bare_ids
  • audio::autoplay::mix_url_rejects_invalid_ids
  • audio::autoplay::search_fallback_preserves_original_language
  • audio::autoplay::should_autoplay_requires_natural_end_empty_queue_and_no_loop
  • audio::autoplay::pick_candidate_skips_recent_and_streams
  • audio::autoplay::dedupe_filters_bounded_history
  • audio::autoplay::failure_budget_is_bounded
  • audio::autoplay::autoplay_control_rearms_and_cancels
  • audio::autoplay::identifier_history_is_bounded_and_drives_dedup

Upgrade instructions

Restart the bot to register /autoplay. No configuration or Lavalink changes
are required. Autoplay is off by default per guild; enable it with /autoplay
while in the same voice channel as the bot.

Known limitations

  • Mix results depend on YouTube's related-video recommendations; when none are
    playable, the title/artist search fallback is used instead.
  • Autoplay is per guild, not per user; any member in the same voice channel can
    toggle it.

wavemelo v0.12.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 14:40

wavemelo v0.12.0

Highlights

  • Smart 180-second auto-leave when the bot is alone in a voice channel or idle
    with an empty queue.
  • /247 slash command to suppress auto-leave and keep the bot connected 24/7.
  • Cancellable Tokio timer with per-guild generation counters so stale timers
    can never disconnect an active session.

Added

  • /247 slash command (Poise rename = "247") toggles per-guild 24/7 mode.
    Requires same-voice-channel authorization.
  • src/audio/idle.rs with a pure decision function (leave_required), a
    cached listener counter, and the cancellable IdleControl primitive.
  • Runtime-handle registration in the GuildStateRegistry so Lavalink event
    handlers and background timers can reach the shard messenger and cache
    without a per-event Serenity Context.
  • Registry::remove now cancels any armed countdown before dropping the
    session.

Changed

  • on_track_end re-evaluates the idle countdown for every end reason
    (including manual /stop), while loop replenishment remains scoped to
    natural Finished ends.
  • on_track_start and voice-state updates refresh the countdown so new tracks
    or returning listeners cancel it immediately.
  • send_voice_state_update now takes the shard messenger directly, allowing
    background tasks to disconnect without a per-event Context.
  • The Ready handler installs runtime handles so every downstream handler can
    reach the cache and shard.

Security and integrity

  • Every idle disconnect re-verifies 24/7 mode, listener count, playback
    state, and queue length under the per-guild operation lock before acting.
  • Generation counters prevent cancelled or superseded timers from firing
    against a rebuilt session.
  • Same-voice-channel authorization is required to toggle /247.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked 89 passed, 0 failed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Thai scan src/ 0 matches
Production panics .unwrap()/.expect()/panic!/todo!/unsafe outside #[cfg(test)] 0

New tests in this release

  • audio::idle::timeout_is_three_minutes
  • audio::idle::decision_table_covers_every_trigger
  • audio::idle::listener_count_excludes_bots_and_other_channels
  • audio::idle::arming_replaces_and_invalidates_the_previous_generation
  • audio::idle::cancel_aborts_the_armed_task
  • audio::idle::stale_generations_never_match_after_rearm
  • audio::idle::finished_tasks_do_not_count_as_armed
  • audio::idle::registry_removal_cancels_the_countdown

Upgrade instructions

Restart the bot to register /247. No configuration or Lavalink changes are
required. Auto-leave activates automatically whenever the bot is alone or idle.

Known limitations

  • The countdown is fixed at 180 seconds; it is not configurable through
    slash commands or environment variables.
  • Auto-leave is reactive to voice-state updates; a gateway outage that
    prevents those updates will also prevent the countdown from advancing.

wavemelo v0.11.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 13:54

wavemelo v0.11.0

Highlights

  • Six audio-filter presets backed by Lavalink's native filter model.
  • Autocomplete for preset names.

Added

  • /filter <preset> supports bassboost, nightcore, vaporwave, 8d,
    karaoke, and clear.
  • src/audio/filters.rs builds complete Filters values from verified
    lavalink-rs structures; each update replaces the previous filter set.
  • Autocomplete suggests matching presets case-insensitively.

Changed

  • Active filter state persists in per-guild session state and is shown by
    /nowplaying.

Security and integrity

  • Preset resolution uses a fixed allow-list; no raw filter JSON is accepted
    from users.
  • Same-voice-channel authorization is required before applying a filter.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Check cargo check --all-targets --locked passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked passed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Localization scan Thai Unicode in src/ 0 matches

Upgrade instructions

Restart the bot to register /filter. No configuration changes required.

Known limitations

  • Filter presets are fixed; custom equalizer bands are not exposed.
  • Live audio output remains unverified without a running deployment.

wavemelo v0.10.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 08:46

wavemelo v0.10.0

Highlights

  • Queue randomization and playback history.
  • Interactive queue pagination with strict wavemelo:queue:* component IDs.

Added

  • /shuffleq randomizes queued tracks with a time-seeded xorshift64 PRNG.
  • /history shows the 20 most recent track titles from bounded state.
  • /queue now includes First/Previous/Next/Last buttons; page IDs carry the
    guild and page number and are validated for canonical decimal fields.
  • src/queue/pagination.rs with pure, tested page arithmetic.

Changed

  • Shuffle is rejected while loop mode is active so marker-based replenishment
    cannot be corrupted.

Security and integrity

  • Queue-page interactions are bound to the originating guild; foreign IDs and
    malformed numbers are rejected with a private error.
  • Queue pages are read-only and require no voice-channel gate.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Check cargo check --all-targets --locked passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked passed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Localization scan Thai Unicode in src/ 0 matches

Upgrade instructions

Restart the bot to register /shuffleq and /history. No configuration
changes are required.

Known limitations

  • History is in-process and resets on restart.
  • Queue pagination buttons are refreshed from live Lavalink state on every
    click; pages may shift if the queue changes concurrently.

wavemelo v0.9.0

Choose a tag to compare

@prxmel4 prxmel4 released this 28 Nov 08:27

wavemelo v0.9.0

Highlights

  • Interactive Now Playing controls: pause/resume, skip, stop, and volume steps
    directly from the /nowplaying message.
  • Stale-button protection: every control is stamped with a generation counter
    that is invalidated on any track transition.

Added

  • src/ui/components.rs: strict component-ID grammar
    (wavemelo:ctrl:<guild>:<generation>:<op>) with canonical decimal fields,
    a 100-character cap, and rejection of malformed or foreign IDs.
  • src/ui/controls.rs: component interaction handler routed through the
    framework event handler (Poise dispatch only covers commands and
    autocomplete). Controls require the same voice channel as the bot.
  • Generation counters on guild state; bumped on track start, skip, stop,
    queue jump, and loop-mode changes so old buttons cannot double-skip.
  • Volume step helper clamped to the supported 0..=150 range.

Changed

  • /nowplaying renders from a single shared player snapshot
    (now_playing::collect_view) used by both commands and buttons.
  • Control interactions acknowledge before remote work, then edit the original
    message in place; failures replace the embed with a safe error message.

Security and integrity

  • Component IDs are validated for canonical numeric form (no leading zeros,
    no signs, ASCII digits only), guild binding, and known operations.
  • IDs from other applications are ignored without a response.
  • No mutex guard is held across network I/O; per-guild mutations are
    serialized with the existing operation lock.

Testing and validation

Gate Command Result
Format cargo fmt --all -- --check passed
Check cargo check --all-targets --locked passed
Clippy cargo clippy --all-targets --locked -- -D warnings passed
Tests cargo test --locked passed
Release build cargo build --release --locked passed
Compose docker compose config --quiet passed
Localization scan Thai Unicode in src/ 0 matches

Upgrade instructions

Restart the bot. Existing /nowplaying messages gain buttons automatically;
no configuration changes are required.

Known limitations

  • Buttons expire when the track changes; run /nowplaying again for fresh
    controls.
  • Live Discord interaction delivery remains unverified without a running
    deployment.