mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
17 lines
571 B
TypeScript
17 lines
571 B
TypeScript
import {Command, NamedCommand} from "onion-lasers";
|
|
|
|
export default new NamedCommand({
|
|
description: "Gives you the invite link.",
|
|
async run({send, client}) {
|
|
send(`https://discordapp.com/api/oauth2/authorize?client_id=${client.user!.id}&permissions=8&scope=bot`);
|
|
},
|
|
number: new Command({
|
|
async run({send, client, args}) {
|
|
send(
|
|
`https://discordapp.com/api/oauth2/authorize?client_id=${client.user!.id}&permissions=${
|
|
args[0]
|
|
}&scope=bot`
|
|
);
|
|
}
|
|
})
|
|
});
|