items part 1

This commit is contained in:
stjet
2024-08-06 08:06:31 +00:00
parent 9226debee2
commit 38c2700c2f
16 changed files with 429 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ import { config } from "dotenv";
config();
import {} from "./db";
import run from "./commands";
import handle_interaction from "./commands";
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
@@ -14,9 +14,8 @@ client.on("ready", async () => {
});
client.on("interactionCreate", async (interaction: BaseInteraction) => {
//
if (interaction.isChatInputCommand()) {
return await run(interaction);
if (interaction.isChatInputCommand() || interaction.isAutocomplete()) {
return await handle_interaction(interaction);
}
});