mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: add annotations to command parameters
This commit is contained in:
1 parent
b118ebdfb0
commit
179f7ddbfd
19 files changed
+52
-20
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user