From cd9559ca56cea250e383f2491b97012313bd15cd Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 27 May 2023 23:24:53 +1000 Subject: [PATCH] Update startup msg to include embed --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cbe92af..13c9e76 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ client.on('ready', async()=>{ }; console.log(`${client.user.tag} has logged into Discord API`); console.log(client.config.botSwitches, client.config.whitelistedServers); - (client.channels.resolve(client.config.mainServer.channels.bot_status) as Discord.TextChannel).send(`${client.user.username} is active\n\`\`\`json\n${Object.entries(client.config.botSwitches).map((hi)=>`${hi[0]}: ${hi[1]}`).join('\n')}\`\`\``); + (client.channels.resolve(client.config.mainServer.channels.bot_status) as Discord.TextChannel).send({content: `${client.user.username} is active`, embeds:[new client.embed().setColor(client.config.embedColor).setDescription(`\`\`\`json\n${Object.entries(client.config.botSwitches).map(hiTae=>`${hiTae[0]}: ${hiTae[1]}`).join('\n')}\`\`\``)]}); console.timeEnd('Startup') })