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
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