mirror of
https://git.arson.gg/lilith/discord-bot.git
synced 2025-12-05 03:34:49 +01:00
guh
This commit is contained in:
parent
e9403a5bc9
commit
7d2b9f51f6
11 changed files with 135 additions and 105 deletions
|
|
@ -37,6 +37,8 @@ for (const folder of commandFolders) {
|
|||
}
|
||||
|
||||
client.on(Events.InteractionCreate, async interaction => {
|
||||
if (!interaction.isAutocomplete() && !interaction.isCommand()) return;
|
||||
|
||||
const command = interaction.client.commands.get(interaction.commandName);
|
||||
if (!command) {
|
||||
console.error(`No command matching ${interaction.commandName} was found.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue