2021-04-12 09:07:04 +00:00
|
|
|
import {Command, NamedCommand} from "../../core";
|
2021-03-31 01:40:29 +00:00
|
|
|
|
2021-04-05 12:21:27 +00:00
|
|
|
export default new NamedCommand({
|
2021-03-31 01:40:29 +00:00
|
|
|
description: "Gives you the invite link.",
|
2021-04-12 09:07:04 +00:00
|
|
|
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`
|
|
|
|
);
|
|
|
|
}
|
|
|
|
})
|
2021-03-31 01:40:29 +00:00
|
|
|
});
|