mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33:18 +00:00
Updated check function
This commit is contained in:
parent
38a8571ddc
commit
ea2be5d5fb
@ -2,6 +2,13 @@ module.exports = function (client, interaction, command) {
|
|||||||
let message = {};
|
let message = {};
|
||||||
const radio = client.radio.get(interaction.guild.id);
|
const radio = client.radio.get(interaction.guild.id);
|
||||||
const permissions = interaction.channel.permissionsFor(interaction.user);
|
const permissions = interaction.channel.permissionsFor(interaction.user);
|
||||||
|
if(!client.stations) {
|
||||||
|
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||||
|
return interaction.reply({
|
||||||
|
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
|
}
|
||||||
if (!radio) {
|
if (!radio) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
content: client.messageEmojis["error"] + client.messages.notPlaying,
|
content: client.messageEmojis["error"] + client.messages.notPlaying,
|
||||||
|
Loading…
Reference in New Issue
Block a user