mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-14 16:20:20 +00:00
Fixed check function
This commit is contained in:
parent
b280981e1c
commit
479c0ee13d
@ -4,10 +4,11 @@ module.exports = function (client, interaction, command) {
|
|||||||
const permissions = interaction.channel.permissionsFor(interaction.user);
|
const permissions = interaction.channel.permissionsFor(interaction.user);
|
||||||
if(!client.stations) {
|
if(!client.stations) {
|
||||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||||
return interaction.reply({
|
interaction.reply({
|
||||||
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (!radio) {
|
if (!radio) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
|
Loading…
Reference in New Issue
Block a user