Merge branch 'master' into fix-33

This commit is contained in:
Christer Warén 2021-09-04 14:04:24 +03:00
commit 55905e3841
2 changed files with 9 additions and 3 deletions

View File

@ -9,7 +9,7 @@ module.exports = {
let message = {};
message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username);
message.bugDescription = message.bugDescription.replace("%client.config.supportGuild%", client.config.supportGuild);
message.bugDescription = client.messages.bugDescription.replace("%client.config.supportGuild%", client.config.supportGuild);
const embed = new Discord.MessageEmbed()
.setTitle(message.bugTitle)

View File

@ -8,10 +8,16 @@ module.exports = {
async execute(interaction, client, Discord, command) {
let message = {};
const radio = client.radio.get(interaction.guild.id);
if (!radio) return interaction.reply('There is nothing playing.');
if (!radio) return interaction.reply({
content: 'There is nothing playing.',
ephemeral: true
});
if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
return interaction.reply({
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
ephemeral: true
});
}
let date = new Date();