mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
add /next command as alias for /skip (#629)
Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
parent
7a190a526b
commit
6495c44c68
|
@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed a case-sensitive import issue
|
- Fixed a case-sensitive import issue
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added a `/next` alias for `/skip`
|
||||||
|
|
||||||
## [1.8.2] - 2022-03-27
|
## [1.8.2] - 2022-03-27
|
||||||
### Fixed
|
### Fixed
|
||||||
- `/fseek` now works again
|
- `/fseek` now works again
|
||||||
|
|
10
src/commands/next.ts
Normal file
10
src/commands/next.ts
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import {injectable} from 'inversify';
|
||||||
|
import Skip from './skip.js';
|
||||||
|
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||||
|
|
||||||
|
@injectable()
|
||||||
|
export default class extends Skip {
|
||||||
|
public readonly slashCommand = new SlashCommandBuilder()
|
||||||
|
.setName('next')
|
||||||
|
.setDescription('skip to the next song');
|
||||||
|
}
|
|
@ -31,6 +31,7 @@ import Resume from './commands/resume.js';
|
||||||
import Seek from './commands/seek.js';
|
import Seek from './commands/seek.js';
|
||||||
import Shuffle from './commands/shuffle.js';
|
import Shuffle from './commands/shuffle.js';
|
||||||
import Skip from './commands/skip.js';
|
import Skip from './commands/skip.js';
|
||||||
|
import Next from './commands/next.js';
|
||||||
import Stop from './commands/stop.js';
|
import Stop from './commands/stop.js';
|
||||||
import Unskip from './commands/unskip.js';
|
import Unskip from './commands/unskip.js';
|
||||||
import ThirdParty from './services/third-party.js';
|
import ThirdParty from './services/third-party.js';
|
||||||
|
@ -77,6 +78,7 @@ container.bind<SpotifyAPI>(TYPES.Services.SpotifyAPI).to(SpotifyAPI).inSingleton
|
||||||
Seek,
|
Seek,
|
||||||
Shuffle,
|
Shuffle,
|
||||||
Skip,
|
Skip,
|
||||||
|
Next,
|
||||||
Stop,
|
Stop,
|
||||||
Unskip,
|
Unskip,
|
||||||
].forEach(command => {
|
].forEach(command => {
|
||||||
|
|
Loading…
Reference in a new issue