-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinvite.js
23 lines (19 loc) · 822 Bytes
/
invite.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { MessageEmbed } = require("discord.js");
module.exports = {
info: {
name: "invite",
description: "To add/invite the bot to your server",
usage: "[invite]",
aliases: ["inv"],
},
run: async function (client, message, args) {
//set the permissions id here (https://discordapi.com/permissions.html)
var permissions = 8;
let invite = new MessageEmbed()
.setTitle(`Invite ${client.user.username}`)
.setDescription(`Want me in your server? Invite me today! \n\n [Invite Link](https://discord.com/oauth2/authorize?client_id=${client.user.id}&permissions=${permissions}&scope=bot)`)
.setURL(`https://discord.com/oauth2/authorize?client_id=${client.user.id}&permissions=${permissions}&scope=bot`)
.setColor("BLUE")
return message.channel.send(invite);
},
};