Skip to content

Commit 1c42390

Browse files
committed
removed autocomplete, gonna add afterwards
1 parent 8cb90cd commit 1c42390

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/events/interactionCreate.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@ import { Events, Interaction, InteractionType, Client } from "discord.js";
33
export default {
44
name: Events.InteractionCreate,
55
async execute(client: Client & { commands: any }, interaction: Interaction) {
6-
if (interaction.isAutocomplete()) {
7-
const command = client.commands.get(interaction.commandName);
8-
9-
if (!command?.autocomplete) return;
10-
11-
try {
12-
await command.autocomplete(interaction);
13-
} catch (err) {
14-
console.error(err);
15-
try {
16-
await interaction.respond([]);
17-
} catch {}
18-
}
19-
20-
return;
21-
}
22-
236
if (
247
interaction.type !== InteractionType.ApplicationCommand ||
258
!interaction.isChatInputCommand()

0 commit comments

Comments
 (0)