aboutsummaryrefslogtreecommitdiff
path: root/src/commands/queue.ts
diff options
context:
space:
mode:
authorKevin Kendzia <[email protected]>2022-05-14 02:44:14 +0200
committerGitHub <[email protected]>2022-05-13 19:44:14 -0500
commiteb2885b2061708415e46929d21bc5991724ce441 (patch)
treee77496a2d2fdd249cc505ca1e06d7b17cce957ac /src/commands/queue.ts
parent1ef05aba9d2e692ef365721f725be2d2a4e464d9 (diff)
downloadmuse-eb2885b2061708415e46929d21bc5991724ce441.tar.xz
muse-eb2885b2061708415e46929d21bc5991724ce441.zip
fix command permission handling and push discord to v10 (#640)
Co-authored-by: Max Isom <[email protected]>
Diffstat (limited to 'src/commands/queue.ts')
-rw-r--r--src/commands/queue.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/queue.ts b/src/commands/queue.ts
index 4d75d42..9115ee6 100644
--- a/src/commands/queue.ts
+++ b/src/commands/queue.ts
@@ -1,4 +1,4 @@
-import {CommandInteraction} from 'discord.js';
+import {ChatInputCommandInteraction} from 'discord.js';
import {SlashCommandBuilder} from '@discordjs/builders';
import {inject, injectable} from 'inversify';
import {TYPES} from '../types.js';
@@ -22,7 +22,7 @@ export default class implements Command {
this.playerManager = playerManager;
}
- public async execute(interaction: CommandInteraction) {
+ public async execute(interaction: ChatInputCommandInteraction) {
const player = this.playerManager.get(interaction.guild!.id);
const embed = buildQueueEmbed(player, interaction.options.getInteger('page') ?? 1);