From 94808a55d73b2d22c729a1bc76e48418639b4a1b Mon Sep 17 00:00:00 2001 From: Neko Life Date: Mon, 24 May 2021 13:40:31 +0000 Subject: [PATCH] Requires the right perms --- cmds/utility/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/utility/send.js b/cmds/utility/send.js index f3f49b4..246d6f7 100644 --- a/cmds/utility/send.js +++ b/cmds/utility/send.js @@ -30,12 +30,12 @@ module.exports = class send extends commando.Command { return trySend(this.client, msg, "That channel is like your gf. Doesn't exist <:cathmmLife:772716381874946068>"); } } - if (!channel.permissionsFor(msg.author).has("SEND_MESSAGES")) { + if (!channel.permissionsFor(msg.author).has("SEND_MESSAGES") || !channel.permissionsFor(msg.author).has("VIEW_CHANNEL")) { return trySend(this.client, msg, "No <:cathmmLife:772716381874946068>"); } try { if (sendTheMes.length === 0) { - return trySend(this.client, channel, `<@!${msg.author.id}> If you wanna send nothin then why you even typed that <:bruhLife:798789686242967554>`); + return trySend(this.client, channel, `<@!${msg.author.id}>, If you wanna send nothin then why you even typed that <:bruhLife:798789686242967554>`); } const sendThis = {content:sendTheMes, disableMentions:"all"}; if (msg.member?.hasPermission("MENTION_EVERYONE")) {