Skip to content

Commit

Permalink
Update status.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Skymidz authored Jul 22, 2022
1 parent 583b1f6 commit 1848ec6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SlashCommands/info/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ module.exports = {
*/
run: async (client, interaction, args) => {

const e0 = new EmbedBuilder().setColor("#8B0000").setDescription("Erreur | Vous n'avez pas les permissions requises.")
const e1 = new EmbedBuilder().setColor("#8B0000").setDescription("Erreur | Veuillez vérifier le fichier \`config\`.")
if (!interaction.member.roles.cache.has(config.staffRole)) return interaction.followUp({ embeds: [e0] }) //verif membre role
if(!config.serverID || !config.serverIP || !config.staffRole ) return interaction.followUp({ embeds: [e1] }) //verif config.js
const e0 = new EmbedBuilder().setColor("#8B0000").setDescription("Erreur | Veuillez vérifier le fichier \`config\`.")
const e1 = new EmbedBuilder().setColor("#8B0000").setDescription("Erreur | Vous n'avez pas les permissions requises.")
if(!config.serverID || !config.serverIP || !config.staffRole ) return interaction.followUp({ embeds: [e0] }) //verif config.js
if (!interaction.member.roles.cache.has(config.staffRole)) return interaction.followUp({ embeds: [e1] }) //verif membre role


const server = await cfx.fetchServer(config.serverID)

Expand Down

0 comments on commit 1848ec6

Please sign in to comment.