From 8652fc937bd485b463acdf937df8ca0fa723f971 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 18 May 2023 10:38:56 +1000 Subject: [PATCH] Auto-populate the embed from whitelist instead. --- src/commands/contributors.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/commands/contributors.ts b/src/commands/contributors.ts index 1dac52b..e53e4d3 100644 --- a/src/commands/contributors.ts +++ b/src/commands/contributors.ts @@ -3,15 +3,8 @@ import TClient from '../client.js'; export default { 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 the bot!**', - 'Toast <@190407856527376384>', - 'TÆMBØ <@615761944154210305>', - 'Buzz <@593696856165449749>', - 'Monster <@215497515934416896>', - 'RainbowDave <@141304507249197057>', - 'Hitchhiker <@506022868157595648>', - 'RedRover92 <@633345781780185099>', - 'Nawdic <@178941218510602240>' + '**Thanks to those below that contributed to/developed the bot!**', + `${client.config.whitelist.map(id=>{const member = interaction.guild.members.cache.get(id) as Discord.GuildMember; return `${member.user.username} <@${id}>`}).join('\n')}` ].join('\n'))]}) }, data: new SlashCommandBuilder()