mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 13:58:05 +03:00
Add an invite command.
This commit is contained in:
@@ -7,6 +7,7 @@ import profile from "./commands/profile";
|
||||
import quote from "./commands/quote";
|
||||
import sync from "./commands/sync";
|
||||
import whois from "./commands/whois";
|
||||
import invite from "./commands/invite";
|
||||
import { SlashCommand } from "./types";
|
||||
|
||||
export const SLASH_COMMANDS: Map<string, SlashCommand> = new Map(
|
||||
@@ -28,5 +29,6 @@ if (ServerConfig.type !== "btchi") {
|
||||
|
||||
// btchi or omni specific commands
|
||||
if (ServerConfig.type !== "ktchi") {
|
||||
SLASH_COMMANDS.set("invite", invite);
|
||||
// None. Yet!
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { SlashCommandBuilder } from "@discordjs/builders";
|
||||
import { client } from "../../main";
|
||||
import { SlashCommand } from "../types";
|
||||
|
||||
const command: SlashCommand = {
|
||||
info: new SlashCommandBuilder()
|
||||
.setName("invite")
|
||||
.setDescription("Invite this bot to another server.")
|
||||
.toJSON(),
|
||||
exec: () => `To invite me into another server, use this link:
|
||||
https://discord.com/api/oauth2/authorize?client_id=${
|
||||
client.application!.id
|
||||
}&permissions=0&scope=bot%20applications.commands`,
|
||||
};
|
||||
|
||||
export default command;
|
||||
Reference in New Issue
Block a user