-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6f3bf4
commit f12b27f
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const { | ||
SlashCommandBuilder, | ||
EmbedBuilder, | ||
ButtonBuilder, | ||
ActionRowBuilder, | ||
ButtonStyle, | ||
} = require("discord.js"); | ||
|
||
module.exports = { | ||
data: new SlashCommandBuilder() | ||
.setName("vote") | ||
.setDescription("Vote for the bot and get an invite link") | ||
.toJSON(), | ||
userPermissions: [], | ||
botPermissions: [], | ||
|
||
run: async (client, interaction) => { | ||
const voteEmbed = new EmbedBuilder() | ||
.setColor("#FFA500") | ||
.setTitle("🗳️ Vote for Our Bot") | ||
.setDescription( | ||
"Your vote helps us grow! Click the buttons below to vote for our bot or invite it to your server." | ||
) | ||
.setFooter({ | ||
text: "Thank you for your support!", | ||
iconURL: client.user.displayAvatarURL(), | ||
}) | ||
.setTimestamp(); | ||
|
||
const buttons = new ActionRowBuilder().addComponents( | ||
new ButtonBuilder() | ||
.setLabel("Top.gg") | ||
.setStyle(ButtonStyle.Link) | ||
.setURL("https://top.gg/bot/1292737804530356224"), | ||
new ButtonBuilder() | ||
.setLabel("Invite") | ||
.setStyle(ButtonStyle.Link) | ||
.setURL( | ||
"https://discord.com/oauth2/authorize?client_id=1292737804530356224&scope=bot" | ||
) | ||
); | ||
|
||
await interaction.reply({ | ||
embeds: [voteEmbed], | ||
components: [buttons], | ||
ephemeral: false, | ||
}); | ||
}, | ||
}; |