mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Update message.js
This commit is contained in:
parent
3c3df91675
commit
9b98935e9d
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
const args = message.content.slice(prefix.length).split(' ');
|
const args = message.content.slice(prefix.length).split(' ');
|
||||||
let commandName;
|
let commandName;
|
||||||
if (message.mentions.users.first()) {
|
if (message.mentions.users.first()) {
|
||||||
if (message.mentions.users.first().id === client.config.botId) {
|
if (message.mentions.users.first().id === client.user.id) {
|
||||||
if (!args[1]) return;
|
if (!args[1]) return;
|
||||||
if (args[1] === 'prefix') return message.channel.send(`My prefix here is: \`${prefix}\`.`);
|
if (args[1] === 'prefix') return message.channel.send(`My prefix here is: \`${prefix}\`.`);
|
||||||
commandName = args[1].toLowerCase();
|
commandName = args[1].toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user