const { embedOptions, systemOptions } = require('../../config'); const { EmbedBuilder } = require('discord.js'); exports.notValidGuildId = async (interaction) => { if (!systemOptions.systemGuildIds.includes(interaction.guildId)) { await interaction.editReply({ embeds: [ new EmbedBuilder() .setDescription( `**${embedOptions.icons.warning} Oops!**\nNo permission to execute this command.\n\nThe command \`${interaction.commandName}\` cannot be executed in this server.` ) .setColor(embedOptions.colors.warning) ] }); return true; } return false; };