mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update message.js
This commit is contained in:
parent
f79b120334
commit
6aa654c9e7
@ -45,6 +45,9 @@ module.exports = {
|
|||||||
if (commandName === 'np') {
|
if (commandName === 'np') {
|
||||||
commandName = 'nowplaying';
|
commandName = 'nowplaying';
|
||||||
}
|
}
|
||||||
|
if (commandName === 'rm') {
|
||||||
|
commandName = 'remove';
|
||||||
|
}
|
||||||
const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName));
|
const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName));
|
||||||
const permissions = message.channel.permissionsFor(message.client.user);
|
const permissions = message.channel.permissionsFor(message.client.user);
|
||||||
if (!permissions.has('EMBED_LINKS')) return message.channel.send(':x: I cannot send embeds (Embed links), make sure I have the proper permissions!');
|
if (!permissions.has('EMBED_LINKS')) return message.channel.send(':x: I cannot send embeds (Embed links), make sure I have the proper permissions!');
|
||||||
|
Loading…
Reference in New Issue
Block a user