Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
set command param type
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Aug 27, 2023
1 parent e9ed2eb commit ef6f7be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/info/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion src/commands/info/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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',
Expand Down

0 comments on commit ef6f7be

Please # to comment.