fix: add annotations to command parameters

This commit is contained in:
Marius Begby committed 2023-08-27 02:52:41 +02:00
1 parent b118ebdfb0
commit 179f7ddbfd
19 files changed
+52 -20

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ import { queueDoesNotExist } from '../../utils/validation/queueValidator';
import{ SlashCommandBuilder, EmbedBuilder } from 'discord.js';
import { useQueue } from 'discord-player';
import loggerModule from '../../services/logger';
import { CommandParams } from '../../types/commandTypes';
module.exports = {
isNew: false,
@@ -22,7 +23,7 @@ module.exports = {
.setMinValue(0)
.setMaxValue(100)
),
execute: async ({ interaction, executionId }) => {
execute: async ({ interaction, executionId }: CommandParams) => {
const logger = loggerModule.child({
source: 'volume.js',
module: 'slashCommand',