mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 21:33:17 +00:00
Remove Bug command
This commit is contained in:
parent
c899266975
commit
c0d0cf23dc
@ -1,6 +1,5 @@
|
||||
import { Snowflake } from "discord.js";
|
||||
import RadioClient from "../Client";
|
||||
import bug from "./commands/bug";
|
||||
import help from "./commands/help";
|
||||
import invite from "./commands/invite";
|
||||
import list from "./commands/list";
|
||||
@ -21,7 +20,7 @@ export interface command {
|
||||
}
|
||||
|
||||
export default async function commands(client: RadioClient) {
|
||||
const commands : command[] = [ bug, help, invite, list, maintenance, next, play, prev, statistics, status, stop ];
|
||||
const commands : command[] = [ help, invite, list, maintenance, next, play, prev, statistics, status, stop ];
|
||||
|
||||
for(const command of commands){
|
||||
client.commands.set(command.name, command);
|
||||
|
@ -1,34 +0,0 @@
|
||||
import { ChatInputCommandInteraction, EmbedBuilder } from "discord.js";
|
||||
import RadioClient from "../../Client";
|
||||
|
||||
export default {
|
||||
name: 'bug',
|
||||
description: 'Report a bug',
|
||||
category: 'info',
|
||||
async execute(interaction: ChatInputCommandInteraction, client: RadioClient) {
|
||||
if(!client.user) return interaction.reply({
|
||||
content: client.messages.emojis["error"] + client.messages.maintenance,
|
||||
ephemeral: true
|
||||
});
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle(client.messages.replace(client.messages.bugTitle, {
|
||||
"%client.user.username%": client.user.username
|
||||
}))
|
||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messages.emojis["logo"].replace(/[^0-9]+/g, ''))
|
||||
.setColor(client.config.embedColor)
|
||||
.setDescription(client.messages.replace(client.messages.bugDescription, {
|
||||
"%client.config.supportGuild%": client.config.supportGuild
|
||||
}))
|
||||
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
||||
.setFooter({
|
||||
text: client.messages.footerText,
|
||||
iconURL: "https://cdn.discordapp.com/emojis/" + client.messages.emojis["eximiabots"].replace(/[^0-9]+/g, '')
|
||||
});
|
||||
|
||||
interaction.reply({
|
||||
embeds: [embed],
|
||||
ephemeral: true
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user