mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-02 12:43:36 +00:00
Typescript Continue
This commit is contained in:
@ -1,15 +1,9 @@
|
||||
import RadioClient from "../../Client";
|
||||
import { command } from "../commands";
|
||||
|
||||
export default function check(client: RadioClient, interaction: any, command: any) {
|
||||
export default function check(client: RadioClient, interaction: any, command: command) {
|
||||
let message: any = {};
|
||||
const radio = client.radio?.get(interaction.guild.id);
|
||||
if(client.config.maintenanceMode){
|
||||
interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.maintenance,
|
||||
ephemeral: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(!client.stations) {
|
||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||
interaction.reply({
|
||||
|
@ -1,5 +1,5 @@
|
||||
export default function logger(area : string, text: string){
|
||||
export default function logger(area: string, text?: string){
|
||||
let date = new Date();
|
||||
console.log('[' + area + '] - ' + date.toISOString());
|
||||
if(text) console.log(text + '\n');
|
||||
if(text) console.log(text + '\n');
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export default async function play(client: RadioClient, interaction: any, guild:
|
||||
message.nowplayingDescription = message.nowplayingDescription.replace("**", "");
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle(client.user.username)
|
||||
.setTitle(client.user?.username || "-")
|
||||
.setThumbnail((radio.station.logo || "https://cdn.discordapp.com/emojis/" + client.messageEmojis["play"].replace(/[^0-9]+/g, '')))
|
||||
.setColor(client.config.embedColor as ColorResolvable)
|
||||
.addFields({
|
||||
|
Reference in New Issue
Block a user