1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-07 07:30:50 +00:00

patch 3.8.4

This commit is contained in:
Matte
2020-07-09 13:52:30 +03:00
parent c2e5e34088
commit 1966324c31
4 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,8 @@ module.exports = {
let prefix = client.global.db.guilds[msg.guild.id].prefix || client.config.prefix;
const args = msg.content.slice(prefix.length).split(" ");
if (client.config.devMode) prefix = client.config.devPrefix;
const permission = msg.channel.permissionsFor(client.user);
if (!permission.has("SEND_MESSAGES")) return;
if (msg.mentions.users.first()) {
if (msg.mentions.users.first().id === client.user.id) {
if (!args[1]) return;