mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Remove Invite command
This commit is contained in:
parent
513369d47b
commit
fa8c0b31df
@ -1,7 +1,6 @@
|
||||
import { ApplicationCommand, ApplicationCommandManager, BaseGuild, Guild, GuildApplicationCommandManager, OAuth2Guild, Snowflake } from "discord.js";
|
||||
import RadioClient from "../Client";
|
||||
import help from "./commands/help";
|
||||
import invite from "./commands/invite";
|
||||
import list from "./commands/list";
|
||||
import maintenance from "./commands/maintenance";
|
||||
import next from "./commands/next";
|
||||
@ -20,7 +19,7 @@ export interface command {
|
||||
}
|
||||
|
||||
export default async function commands(client: RadioClient) {
|
||||
const commands1 : command[] = [ help, invite, list, maintenance, next, play, prev, statistics, status, stop ];
|
||||
const commands1 : command[] = [ help, list, maintenance, next, play, prev, statistics, status, stop ];
|
||||
const commands2 = await client.application?.commands.fetch();
|
||||
|
||||
for(const command of commands1){
|
||||
|
@ -1,32 +0,0 @@
|
||||
import { ChatInputCommandInteraction, EmbedBuilder } from "discord.js";
|
||||
import RadioClient from "../../Client";
|
||||
|
||||
export default {
|
||||
name: 'invite',
|
||||
description: 'Invite Bot',
|
||||
category: 'info',
|
||||
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.inviteTitle, {
|
||||
"%client.user.username%": client.user.username
|
||||
}))
|
||||
.setColor(client.config.embedColor)
|
||||
.setURL("https://discord.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=2184465408&scope=applications.commands%20bot") //View Channels, Send Messages, Embed Links, Use External Emojis, Use Slash Commands, Connect, Speak, Use Voice Activity
|
||||
.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
|
||||
});
|
||||
}
|
||||
};
|
@ -18,7 +18,6 @@ export const messages = {
|
||||
noPermsEmbed: "I cannot send embeds (Embed links).",
|
||||
helpTitle: "Help",
|
||||
helpDescription: "Join to our support server" + "\n" + "%client.config.supportGuild%",
|
||||
inviteTitle: "Invite %client.user.username% to your Discord server!",
|
||||
listTitle: "Radio Stations",
|
||||
playTitle1: ":radio: Channel",
|
||||
playDescription1: "__%radio.station.name%__" + "\n" + "%radio.station.owner%",
|
||||
|
Loading…
Reference in New Issue
Block a user