mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +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
@@ -9,6 +9,7 @@ import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||
import { useMainPlayer, useQueue } from 'discord-player';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
import { CommandAutocompleteParams, CommandParams } from '../../types/commandTypes';
|
||||
|
||||
const recentQueries = new Map();
|
||||
|
||||
@@ -35,7 +36,7 @@ module.exports = {
|
||||
.setMaxLength(500)
|
||||
.setAutocomplete(true)
|
||||
),
|
||||
autocomplete: async ({ interaction, executionId }) => {
|
||||
autocomplete: async ({ interaction, executionId }: CommandAutocompleteParams) => {
|
||||
const logger = loggerTemplate.child({
|
||||
executionId: executionId,
|
||||
shardId: interaction.guild.shardId,
|
||||
@@ -87,7 +88,7 @@ module.exports = {
|
||||
logger.debug(`Responding to autocomplete with results for query: '${query}'.`);
|
||||
return interaction.respond(response);
|
||||
},
|
||||
execute: async ({ interaction, executionId }) => {
|
||||
execute: async ({ interaction, executionId }: CommandParams) => {
|
||||
const logger = loggerTemplate.child({
|
||||
executionId: executionId,
|
||||
shardId: interaction.guild.shardId,
|
||||
|
||||
Reference in new issue
Block a user