mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 14:14:59 +05:00
??????
This commit is contained in:
parent
39f34d45ee
commit
c72c7f9023
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,8 @@ class CommandHandler extends BaseEvent {
|
|||
* @param {import("discord.js").BaseInteraction} 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 = [];
|
||||
|
||||
|
@ -33,7 +35,6 @@ class CommandHandler extends BaseEvent {
|
|||
if (interaction.isButton() && interaction.customId === "quote_delete" && interaction.message.deletable) return interaction.message.delete();
|
||||
if (interaction.type !== InteractionType.ApplicationCommand && !interaction.isCommand()) return;
|
||||
|
||||
if (!interaction.guildId === "1039187019957555252") return interaction.error({ content: "IAT Only", ephemeral: true });
|
||||
if (command.ownerOnly && interaction.user.id !== client.config.owner.id) return interaction.error("misc:OWNER_ONLY", null, { ephemeral: true });
|
||||
|
||||
if (!userData.achievements.firstCommand.achieved) {
|
||||
|
|
Loading…
Reference in a new issue