mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 06:28:54 +00:00
set command param type
This commit is contained in:
1 parent
e9ed2eb0b8
commit
ef6f7bef80
2 files changed
+4
-2
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user