1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00
Daggerbot-TS/src/commands/contributors.ts

13 lines
723 B
TypeScript
Raw Normal View History

import Discord,{SlashCommandBuilder} from 'discord.js';
2023-04-14 06:47:58 -04:00
import TClient from '../client.js';
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([
'**Thanks to those below that contributed to/developed the bot!**',
2023-05-20 03:17:23 -04:00
client.config.contribList.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')
.setDescription('List of people who contributed to the bot')
}