mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 17:43:38 +00:00
Updated emojis and renamed X emoji to Error
This commit is contained in:
@ -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;
|
||||
|
@ -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 = {};
|
||||
|
Reference in New Issue
Block a user