Skip to content

Commit

Permalink
fix: replace ts-ignore with explicit type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
lukazbaum committed Jan 12, 2025
1 parent 4b3e100 commit 1ba7b72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/slash/showcase/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { type AutocompleteInteraction, type ChatInputCommandInteraction, SlashCo
export default new SlashCommand({
registerType: RegisterType.Guild,

// @ts-ignore
data: new SlashCommandBuilder()
.setName('autocomplete')
.setDescription('Explore the autocomplete feature!')
Expand All @@ -14,7 +13,7 @@ export default new SlashCommand({
.setDescription('Choose a topic from the suggestions')
.setAutocomplete(true)
.setRequired(true),
),
) as SlashCommandBuilder,

async autocomplete(interaction: AutocompleteInteraction): Promise<void> {
const focusedValue: string = interaction.options.getFocused().toLowerCase();
Expand Down

0 comments on commit 1ba7b72

Please sign in to comment.