Skip to content

Commit

Permalink
[New] invite command now supports prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 5, 2021
1 parent cf064de commit a69b758
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions commands/Misc/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@ const { SlashCommandBuilder } = require("@discordjs/builders");
const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js");

module.exports = {
name: "invite",
aliases: ["inv"],
description: "Get my link to invite me to other servers!",
usage: "invite || inv",
async run(message, args, client) {
const row = new MessageActionRow().addComponents(
new MessageButton()
.setLabel("Invite")
.setStyle("LINK")
.setURL(
`https://discord.com/oauth2/authorize?client_id=${client.user.id}&scope=applications.commands%20bot&permissions=536079414`
),
new MessageButton()
.setLabel("GitHub")
.setStyle("LINK")
.setURL("https://github.com/naseif/Eyesense-Music-Bot"),
new MessageButton()
.setLabel("Support")
.setStyle("LINK")
.setURL("https://discord.gg/JCdpeeNP9N")
);

const embed = new MessageEmbed()
.setAuthor(
"Eyesense",
"https://cdn.discordapp.com/attachments/547844388492148737/893093188926079036/c8e3bbbc07dc4680bea5b355f2c708c7.png"
)
.setThumbnail(
"https://cdn.discordapp.com/attachments/547844388492148737/893093188926079036/c8e3bbbc07dc4680bea5b355f2c708c7.png"
)
.setColor("#9dcc37")
.addField(
"Eyesense",
`Eyesense is a feature-rich discord bot that provides over 100 commands!`,
true
);
await message.channel.send({ embeds: [embed], components: [row] });
},
data: new SlashCommandBuilder()
.setName("invite")
.setDescription("Get my link to invite me to other servers!"),
Expand Down

0 comments on commit a69b758

Please sign in to comment.