mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 08:20:58 -05:00
Auto-populate the embed from whitelist instead.
This commit is contained in:
parent
8dd1a9e524
commit
c77ef897c4
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user