Updated emojis and renamed X emoji to Error

This commit is contained in:
Christer Warén
2020-04-02 07:40:01 +03:00
parent 3c3ec6c2b4
commit 889646a6d0
3 changed files with 15 additions and 15 deletions

View File

@ -3,17 +3,17 @@ module.exports = function (client, msg, command) {
const radio = client.radio.get(msg.guild.id);
const permissions = msg.channel.permissionsFor(msg.author);
if (!radio) {
msg.channel.send(client.messageEmojis["x"] + client.messages.notPlaying);
msg.channel.send(client.messageEmojis["error"] + client.messages.notPlaying);
return false;
}
if (msg.member.voice.channel !== radio.voiceChannel) {
msg.channel.send(client.messageEmojis["x"] + client.messages.wrongVoiceChannel);
msg.channel.send(client.messageEmojis["error"] + client.messages.wrongVoiceChannel);
return false;
}
if(!command.permission == 'none'){
if (!permissions.has(command.permission)) {
message.noPerms = client.messages.noPerms.replace("%command.permission%", command.permission);
msg.channel.send(client.messageEmojis["x"] + message.noPerms);
msg.channel.send(client.messageEmojis["error"] + message.noPerms);
return false;
} else return true;
} else return true;

View File

@ -7,9 +7,9 @@ module.exports = {
list: "<:RadioXList:688541155519889482>",
play: "<:RadioXPlay:688541155712827458>",
stop: "<:RadioXStop:688541155377414168>",
statistics: "<:RadioXStatistics:000000000000000000>",
maintenance: "<:RadioXMaintenance:000000000000000000>",
x: "<:RadioXX:688541155792781320>"
statistics: "<:RadioXStatistics:694954485507686421>",
maintenance: "<:RadioXMaintenance:695043843057254493>",
error: "<:RadioXError:688541155792781320>"
};
let fallbackEmojis = {
@ -20,7 +20,7 @@ module.exports = {
stop: "⏹️",
statistics: "📊",
maintenance: "🛠️",
x: "❌"
error: "❌"
};
client.messageEmojis = {};