1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Update msg.js

This commit is contained in:
Matte 2020-07-29 20:50:54 +03:00 committed by GitHub
parent e62bec318a
commit 388597412a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ module.exports = {
if (!permission.has("SEND_MESSAGES")) return; if (!permission.has("SEND_MESSAGES")) return;
if (msg.mentions.users.first()) { if (msg.mentions.users.first()) {
if (msg.mentions.users.first().id === client.user.id) { 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[1] === "prefix") {
if (!args[2]) if (!args[2])
return msg.channel.send( 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") if (client.config.devMode && msg.member.id !== client.config.devId && msg.guild.id !== "718081535240306738")
return msg.channel.send(client.messages.devMode); return msg.channel.send(client.messages.devMode);
client.funcs.exe(msg, args, client, Discord, command); client.funcs.exe(msg, args, client, Discord, command);
} }