Merge branch 'feature/slash-commands'

This commit is contained in:
Max Isom 2022-02-05 17:19:13 -05:00
commit 443e8e8cb3
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
7 changed files with 6 additions and 7 deletions

View file

@ -9,7 +9,7 @@ import Command from '.';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('disconnect') .setName('disconnect')
.setDescription('pauses and disconnects player'); .setDescription('pause and disconnect Muse');
public requiresVC = true; public requiresVC = true;

View file

@ -10,7 +10,7 @@ import {prisma} from '../utils/db.js';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('favorites') .setName('favorites')
.setDescription('adds a song to your favorites') .setDescription('add a song to your favorites')
.addSubcommand(subcommand => subcommand .addSubcommand(subcommand => subcommand
.setName('use') .setName('use')
.setDescription('use a favorite') .setDescription('use a favorite')

View file

@ -10,7 +10,7 @@ import Command from '.';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('pause') .setName('pause')
.setDescription('pauses the current song'); .setDescription('pause the current song');
public requiresVC = true; public requiresVC = true;

View file

@ -19,7 +19,6 @@ import {getMemberVoiceChannel, getMostPopularVoiceChannel} from '../utils/channe
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('play') .setName('play')
// TODO: make sure verb tense is consistent between all command descriptions
.setDescription('play a song or resume playback') .setDescription('play a song or resume playback')
.addStringOption(option => option .addStringOption(option => option
.setName('query') .setName('query')

View file

@ -9,7 +9,7 @@ import {SlashCommandBuilder} from '@discordjs/builders';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('shuffle') .setName('shuffle')
.setDescription('shuffles the current queue'); .setDescription('shuffle the current queue');
public requiresVC = true; public requiresVC = true;

View file

@ -10,7 +10,7 @@ import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('skip') .setName('skip')
.setDescription('skips the next songs') .setDescription('skip the next songs')
.addIntegerOption(option => option .addIntegerOption(option => option
.setName('number') .setName('number')
.setDescription('number of songs to skip [default: 1]') .setDescription('number of songs to skip [default: 1]')

View file

@ -10,7 +10,7 @@ import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
export default class implements Command { export default class implements Command {
public readonly slashCommand = new SlashCommandBuilder() public readonly slashCommand = new SlashCommandBuilder()
.setName('unskip') .setName('unskip')
.setDescription('goes back in the queue by one song'); .setDescription('go back in the queue by one song');
public requiresVC = true; public requiresVC = true;