Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/Commands/Information/vote.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { stripIndents } from 'common-tags';
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import { colors } from '../../Utils/functions/utils';

export default {
data: new SlashCommandBuilder()
.setName('vote')
.setDescription('Voting perks and vote link.'),
async execute(interaction: ChatInputCommandInteraction) {
const embed = new EmbedBuilder()
.setDescription(stripIndents`
# 🗳️ Support InterChat by Voting

Your votes play a crucial role in boosting InterChat's ranking on Top.gg, so every vote matters!

As a token of our appreciation for your support, we offer exclusive perks for voters. By voting for InterChat, you gain access to:

- Message Editing capabilities within hubs (More to come!)
### Cast your vote here: [Vote for InterChat](https://top.gg/bot/${interaction.client.user.id}/vote)
We sincerely thank you for your support! 🙏
`)
.setColor(colors('chatbot'));

const button = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel('Vote!')
.setEmoji('🗳️')
.setURL(`https://top.gg/bot/${interaction.client.user.id}/vote`),
);

await interaction.reply({ embeds: [embed], components: [button] });
},
};