diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 898617b..3ba7a01 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -2,6 +2,7 @@ import config from 'config'; import { EmbedBuilder, SlashCommandBuilder } from 'discord.js'; import loggerModule from '../../services/logger'; +import { CommandParams } from '../../types/commandTypes'; import { BotOptions, EmbedOptions } from '../../types/configTypes'; const embedOptions: EmbedOptions = config.get('embedOptions'); @@ -12,7 +13,7 @@ module.exports = { .setDescription('Show a list of commands and their usage.') .setDMPermission(false) .setNSFW(false), - execute: async ({ interaction, client, executionId }) => { + execute: async ({ interaction, client, executionId }: CommandParams) => { const logger = loggerModule.child({ source: 'help.js', module: 'slashCommand', diff --git a/src/commands/info/status.ts b/src/commands/info/status.ts index cbc5fd8..d425a0c 100644 --- a/src/commands/info/status.ts +++ b/src/commands/info/status.ts @@ -5,6 +5,7 @@ import osu from 'node-os-utils'; // @ts-ignore import { version } from '../../../package.json'; import loggerModule from '../../services/logger'; +import { CommandParams } from '../../types/commandTypes'; import { EmbedOptions } from '../../types/configTypes'; import { getUptimeFormatted } from '../../utils/system/getUptimeFormatted'; @@ -17,7 +18,7 @@ module.exports = { .setDescription('Show the bot and system status.') .setDMPermission(false) .setNSFW(false), - execute: async ({ interaction, client, executionId }) => { + execute: async ({ interaction, client, executionId }: CommandParams) => { const logger = loggerModule.child({ source: 'status.js', module: 'slashCommand',