Skip to content

Commit 1ba7b72

Browse files
committed
fix: replace ts-ignore with explicit type cast
1 parent 4b3e100 commit 1ba7b72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commands/slash/showcase/autocomplete.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { type AutocompleteInteraction, type ChatInputCommandInteraction, SlashCo
44
export default new SlashCommand({
55
registerType: RegisterType.Guild,
66

7-
// @ts-ignore
87
data: new SlashCommandBuilder()
98
.setName('autocomplete')
109
.setDescription('Explore the autocomplete feature!')
@@ -14,7 +13,7 @@ export default new SlashCommand({
1413
.setDescription('Choose a topic from the suggestions')
1514
.setAutocomplete(true)
1615
.setRequired(true),
17-
),
16+
) as SlashCommandBuilder,
1817

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

0 commit comments

Comments
 (0)