mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-08-05 23:43:30 +02:00
fix command permission handling and push discord to v10 (#640)
Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
parent
1ef05aba9d
commit
eb2885b206
38 changed files with 1214 additions and 644 deletions
|
@ -1,4 +1,4 @@
|
|||
import {AutocompleteInteraction, CommandInteraction} from 'discord.js';
|
||||
import {AutocompleteInteraction, ChatInputCommandInteraction} from 'discord.js';
|
||||
import {URL} from 'url';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {inject, injectable} from 'inversify';
|
||||
|
@ -43,8 +43,7 @@ export default class implements Command {
|
|||
this.addQueryToQueue = addQueryToQueue;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line complexity
|
||||
public async execute(interaction: CommandInteraction): Promise<void> {
|
||||
public async execute(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const query = interaction.options.getString('query')!;
|
||||
|
||||
await this.addQueryToQueue.addToQueue({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue