1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Tweak contributor.ts

This commit is contained in:
AnxietyisReal 2023-09-26 20:52:56 +10:00
parent 4fb16486a5
commit 9bfcfe2dac

View File

@ -5,8 +5,10 @@ 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(MessageTool.concatMessage( interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Daggerbot contributors').setDescription(MessageTool.concatMessage(
'**Thanks to those below that contributed to/developed the bot!**', '**Thanks to those below that contributed to/developed the bot!**',
client.config.contribList.map(id=>{const member = interaction.guild.members.cache.get(id); return `${member?.user?.username ?? 'N/A'} <@${id}>`}).join('\n') client.config.contribList.map(id=>{
))]}) const member = interaction.guild.members.cache.get(id);
return `${member?.user?.username ?? 'N/A'} <@${id}>`}
).join('\n')))]})
}, },
data: new Discord.SlashCommandBuilder() data: new Discord.SlashCommandBuilder()
.setName('contributors') .setName('contributors')