From 388597412a22055855b28aff5e445b411807c3cb Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Wed, 29 Jul 2020 20:50:54 +0300 Subject: [PATCH] Update msg.js --- src/events/clientEvents/msg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/clientEvents/msg.js b/src/events/clientEvents/msg.js index 81cf2ea3..804bce7a 100644 --- a/src/events/clientEvents/msg.js +++ b/src/events/clientEvents/msg.js @@ -10,7 +10,7 @@ module.exports = { if (!permission.has("SEND_MESSAGES")) return; if (msg.mentions.users.first()) { if (msg.mentions.users.first().id === client.user.id) { - if (!args[1]) return; + if (!args[1] || args[0] !== `@!${client.user.id}>`) return; if (args[1] === "prefix") { if (!args[2]) return msg.channel.send( @@ -41,4 +41,4 @@ function getCommand(client, args, msg, Discord) { if (client.config.devMode && msg.member.id !== client.config.devId && msg.guild.id !== "718081535240306738") return msg.channel.send(client.messages.devMode); client.funcs.exe(msg, args, client, Discord, command); -} \ No newline at end of file +}