2023-05-23 01:14:17 -04:00
|
|
|
import Discord from 'discord.js';
|
2023-04-14 06:47:58 -04:00
|
|
|
import TClient from '../client.js';
|
2023-08-29 20:21:53 -04:00
|
|
|
import MessageTool from '../helpers/MessageTool.js';
|
2023-12-24 10:21:40 -05:00
|
|
|
export default class Contributors {
|
|
|
|
static run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
|
2023-08-29 20:21:53 -04:00
|
|
|
interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Daggerbot contributors').setDescription(MessageTool.concatMessage(
|
2023-12-24 10:21:40 -05:00
|
|
|
'**Thanks to those below that made their contributions to the bot!**',
|
|
|
|
client.config.contribList.map(id=>`${interaction.guild.members.cache.get(id)?.user?.username ?? 'N/A'} <@${id}>`).join('\n')))]})
|
|
|
|
}
|
|
|
|
static data = new Discord.SlashCommandBuilder()
|
2023-03-05 05:04:10 -05:00
|
|
|
.setName('contributors')
|
2023-03-29 07:21:46 -04:00
|
|
|
.setDescription('List of people who contributed to the bot')
|
2023-12-24 10:21:40 -05:00
|
|
|
}
|