set command param type

This commit is contained in:
Marius Begby committed 2023-08-27 13:54:34 +02:00
1 parent e9ed2eb0b8
commit ef6f7bef80
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -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',
+2 -1
View File
@@ -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',