1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 12:30:58 -04:00

Auto-populate the embed from whitelist instead.

This commit is contained in:
AnxietyisReal 2023-05-18 10:38:56 +10:00
parent 51ce81f417
commit 41b2b7abd5

View File

@ -3,15 +3,8 @@ import TClient from '../client.js';
export default { export default {
run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Daggerbot contributors').setDescription([ interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Daggerbot contributors').setDescription([
'**Thanks to those below that contributed to the bot!**', '**Thanks to those below that contributed to/developed the bot!**',
'Toast <@190407856527376384>', `${client.config.whitelist.map(id=>{const member = interaction.guild.members.cache.get(id) as Discord.GuildMember; return `${member.user.username} <@${id}>`}).join('\n')}`
'TÆMBØ <@615761944154210305>',
'Buzz <@593696856165449749>',
'Monster <@215497515934416896>',
'RainbowDave <@141304507249197057>',
'Hitchhiker <@506022868157595648>',
'RedRover92 <@633345781780185099>',
'Nawdic <@178941218510602240>'
].join('\n'))]}) ].join('\n'))]})
}, },
data: new SlashCommandBuilder() data: new SlashCommandBuilder()