2022-11-17 12:58:19 -05:00
|
|
|
import Discord,{SlashCommandBuilder} from 'discord.js';
|
2023-04-14 06:47:58 -04:00
|
|
|
import TClient from '../client.js';
|
2022-11-17 12:58:19 -05:00
|
|
|
export default {
|
2023-03-05 05:04:10 -05:00
|
|
|
run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
|
|
|
|
interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Daggerbot contributors').setDescription([
|
2023-05-17 20:38:56 -04:00
|
|
|
'**Thanks to those below that contributed to/developed the bot!**',
|
2023-05-17 20:50:08 -04:00
|
|
|
client.config.whitelist.map(id=>{const member = interaction.guild.members.cache.get(id); return `${member?.user?.username ?? 'N/A'} <@${id}>`}).join('\n')
|
2023-03-05 05:04:10 -05:00
|
|
|
].join('\n'))]})
|
|
|
|
},
|
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('contributors')
|
2023-03-29 07:21:46 -04:00
|
|
|
.setDescription('List of people who contributed to the bot')
|
2022-11-17 12:58:19 -05:00
|
|
|
}
|