im stupid

This commit is contained in:
Jonny_Bro (Nikita) 2023-11-06 18:23:02 +05:00
parent c72c7f9023
commit 7811127db6

View file

@ -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;