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/move.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/move.ts')
| -rw-r--r-- | src/commands/move.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/move.ts b/src/commands/move.ts index 9855c59..9063473 100644 --- a/src/commands/move.ts +++ b/src/commands/move.ts @@ -1,4 +1,4 @@ -import {CommandInteraction} from 'discord.js'; +import {ChatInputCommandInteraction} from 'discord.js'; import {inject, injectable} from 'inversify'; import {TYPES} from '../types.js'; import PlayerManager from '../managers/player.js'; @@ -26,7 +26,7 @@ export default class implements Command { this.playerManager = playerManager; } - public async execute(interaction: CommandInteraction): Promise<void> { + public async execute(interaction: ChatInputCommandInteraction): Promise<void> { const player = this.playerManager.get(interaction.guild!.id); const from = interaction.options.getInteger('from') ?? 1; |
