1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-27 16:35:37 -05:00

Use correct type in parameter

This commit is contained in:
toast-ts 2023-02-10 18:51:11 -08:00
parent 7eed1d55ab
commit 1df6004a32

View File

@ -1,7 +1,7 @@
import Discord from 'discord.js';
import TClient from '../client';
export default {
async run(client:TClient, interaction:Discord.ChatInputCommandInteraction){
async run(client:TClient, interaction:Discord.BaseInteraction){
if (!interaction.inGuild() || !interaction.inCachedGuild()) return;
if (interaction.isChatInputCommand()){
const commandFile = client.commands.get(interaction.commandName);