diff options
| author | Kevin Kendzia <[email protected]> | 2022-05-14 02:44:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-13 19:44:14 -0500 |
| commit | eb2885b2061708415e46929d21bc5991724ce441 (patch) | |
| tree | e77496a2d2fdd249cc505ca1e06d7b17cce957ac /src/commands/queue.ts | |
| parent | 1ef05aba9d2e692ef365721f725be2d2a4e464d9 (diff) | |
| download | muse-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.ts | 4 |
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); |
