13 lines
403 B
TypeScript
13 lines
403 B
TypeScript
import {Command, NamedCommand} from "../../core";
|
|
|
|
export default new NamedCommand({
|
|
description: "Gives you the invite link.",
|
|
async run({message, channel, guild, author, member, client, args}) {
|
|
channel.send(
|
|
`https://discordapp.com/api/oauth2/authorize?client_id=${client.user!.id}&permissions=${
|
|
args[0] || 8
|
|
}&scope=bot`
|
|
);
|
|
}
|
|
});
|