Skip to content

Commit

Permalink
[upd] cmd sendembed se rige por permisos de guild
Browse files Browse the repository at this point in the history
  • Loading branch information
imkuroneko committed Aug 5, 2023
1 parent c03f822 commit bcc779a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions interactions/slashCommands/misc/sendembed.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
const { SlashCommandBuilder } = require('discord.js');
const path = require('path');

// Load configuration files ================================================================================================
const { ownerId } = require(path.resolve('./config/bot'));

// Module script ===========================================================================================================
module.exports = {
data: new SlashCommandBuilder()
Expand All @@ -20,10 +17,6 @@ module.exports = {
return interaction.reply({ content: '🚨 embed no válido', ephemeral: true });
}

if(interaction.user.id != ownerId) {
return interaction.reply({ content: 'No tienes permiso para utilizar este comando hooman...', ephemeral: true });
}

if(!(isJsonString(embed))) {
return interaction.reply({ content: 'Este embed no tiene un formato válido.', ephemeral: true });
}
Expand Down

0 comments on commit bcc779a

Please sign in to comment.