From e43220c758d52008291cd761c6c4a03c06e4e3d6 Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 21:04:46 +0100 Subject: [PATCH] Fix --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e720700..76a630c 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,9 @@ const dc = require("discord.js"); const client = new dc.Client({intents: ["GUILDS", "GUILD_MESSAGES"]}); const fs = require("fs"); const allowed = ["831598877320413244"]; +const senders = allowed.join(",").split(","); +senders.push("827108172325847051"); +senders.push("246721024102498304"); function isDir(path){ try{ @@ -136,7 +139,7 @@ client.on("interactionCreate", (int) => { int.reply({embeds: [embed], components: [msgRow]}); } else if(int.commandName == "send"){ console.log("Send!"); - if(!allowed.includes(int.user.id)) return int.reply({content: "You don't have permissions to use this command.", ephemeral: true}); + if(!senders.includes(int.user.id)) return int.reply({content: "You don't have permissions to use this command.", ephemeral: true}); var channel = int.options.getChannel("channel") || int.channel; var message = int.options.getString("message"); channel.send(message).then(msg => {