From 32b141fbcff72b787c6458b658a0d0c7ca39499a Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Mon, 23 Dec 2019 22:40:11 -0500 Subject: [PATCH] woo yeah grammar fix --- events/message.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/events/message.js b/events/message.js index 4e88188..0c7af73 100644 --- a/events/message.js +++ b/events/message.js @@ -24,9 +24,8 @@ module.exports = async (client, message) => { if (level < client.levelCache[cmd.conf.permLevel]) { if (settings.systemNotice === "true") { - return message.channel.send(`You do not have permission to use this command. - Your permission level is **${level}** (${client.config.permLevels.find(l => l.level === level).name}) - This command requires level **${client.levelCache[cmd.conf.permLevel]}** (${cmd.conf.permLevel})`); + message.delete(); + return message.channel.send(`${message.author}, you do not have the right permissions to use this command.\nYour current permission level is **${level}** (${client.config.permLevels.find(l => l.level === level).name}), and this command requires permission level **${client.levelCache[cmd.conf.permLevel]}** (${cmd.conf.permLevel})`); } else { return; }