mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
im stupid
This commit is contained in:
parent
c72c7f9023
commit
7811127db6
1 changed files with 2 additions and 3 deletions
|
@ -12,11 +12,9 @@ class CommandHandler extends BaseEvent {
|
|||
/**
|
||||
*
|
||||
* @param {import("../base/Client")} client
|
||||
* @param {import("discord.js").BaseInteraction} interaction
|
||||
* @param {import("discord.js").CommandInteraction} interaction
|
||||
*/
|
||||
async execute(client, interaction) {
|
||||
if (interaction.guildId !== "1039187019957555252") return interaction.error({ content: "IAT Only", ephemeral: true });
|
||||
|
||||
const command = client.commands.get(interaction.commandName);
|
||||
const data = [];
|
||||
|
||||
|
@ -31,6 +29,7 @@ class CommandHandler extends BaseEvent {
|
|||
data.memberData = memberData;
|
||||
}
|
||||
|
||||
if (command.dirname.includes("IAT") && interaction.guildId !== "1039187019957555252") return interaction.reply({ content: "IAT Only", ephemeral: true });
|
||||
if (interaction.isAutocomplete()) return await command.autocompleteRun(client, interaction);
|
||||
if (interaction.isButton() && interaction.customId === "quote_delete" && interaction.message.deletable) return interaction.message.delete();
|
||||
if (interaction.type !== InteractionType.ApplicationCommand && !interaction.isCommand()) return;
|
||||
|
|
Loading…
Reference in a new issue