Skip to content

Commit

Permalink
add change log and rename commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed May 8, 2023
1 parent a62cd7f commit 82e4ec7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 0.1.1

Added `/loop` command. Renamed `/mv` command to `/move`

# 0.1.0

Initial release.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ optional argument. By default displays the first page.
* `/clear` - Stops the current song and clear all songs in the queue.
* `/rm <index>` - Removes a specific song in the queue.
* `/skip` - skips the current song and play the next one in queue.
* `/mv <from> <to>` moves a song at the index to a new index.
* `/move <from> <to>` moves a song at the index to a new index.
* `/swap <a> <b>` swaps two songs' positions in the queue.
* `/pause` pauses the current playback
* `/resume` resumes the current song
Expand Down
5 changes: 3 additions & 2 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::metadata::{format_metadata, AuxMetadataKey};
use crate::vc::enter_vc;
use crate::{CommandResult, Context};

crate::commands!(skip, mv, swap, remove, clear, shuffle);
crate::commands!(skip, r#move, swap, remove, clear, shuffle);

async fn queue_modify<F: FnOnce(&mut VecDeque<Queued>) -> String>(
ctx: Context<'_>,
Expand Down Expand Up @@ -39,8 +39,9 @@ async fn skip(ctx: Context<'_>) -> CommandResult {
}

#[poise::command(slash_command, category = "Queue")]
#[rename = "move"] // TODO https://github.com/serenity-rs/poise/issues/168

Check failure on line 42 in src/queue.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find attribute `rename` in this scope

Check failure on line 42 in src/queue.rs

View workflow job for this annotation

GitHub Actions / Test

cannot find attribute `rename` in this scope
/// Reorder a track in the queue
async fn mv(
async fn r#move(
ctx: Context<'_>,
#[description = "move from where"] from: usize,
#[description = "move to where"] to: usize,
Expand Down
1 change: 1 addition & 0 deletions src/track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ impl TypeMapKey for LoopState {
}

#[poise::command(slash_command, category = "Controls")]
#[rename = "loop"] // TODO https://github.com/serenity-rs/poise/issues/168

Check failure on line 51 in src/track.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find attribute `rename` in this scope

Check failure on line 51 in src/track.rs

View workflow job for this annotation

GitHub Actions / Test

cannot find attribute `rename` in this scope
/// Toggle loop mode for the current track
async fn r#loop(ctx: Context<'_>) -> CommandResult {
enter_vc(ctx, false, |handler, c| async move {
Expand Down

0 comments on commit 82e4ec7

Please sign in to comment.