mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-12-16 14:19:20 +00:00
Move emojis to messages variable
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
import RadioClient from "../../Client";
|
||||
import { command } from "../commands";
|
||||
|
||||
export default function check(client: RadioClient, interaction: any, command: command) {
|
||||
let message: any = {};
|
||||
const radio = client.radio?.get(interaction.guild.id);
|
||||
if(!client.stations) {
|
||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||
interaction.reply({
|
||||
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
||||
content: client.messages.emojis["error"] + message.errorToGetPlaylist,
|
||||
ephemeral: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!radio) {
|
||||
interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.notPlaying,
|
||||
content: client.messages.emojis["error"] + client.messages.notPlaying,
|
||||
ephemeral: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (interaction.member.voice.channel !== radio.voiceChannel) {
|
||||
interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.wrongVoiceChannel,
|
||||
content: client.messages.emojis["error"] + client.messages.wrongVoiceChannel,
|
||||
ephemeral: true
|
||||
});
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user