From 00d6660ca03f4491384a9ade169deafc1771b937 Mon Sep 17 00:00:00 2001 From: Christoph <29735603+Chr1s70ph@users.noreply.github.com> Date: Thu, 7 Apr 2022 17:00:25 +0200 Subject: [PATCH] crosspost mensa message (aka auto publish) --- scripts/addCommands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/addCommands.ts b/scripts/addCommands.ts index 654879b..a0cb9bc 100644 --- a/scripts/addCommands.ts +++ b/scripts/addCommands.ts @@ -152,6 +152,7 @@ async function mensa_automation(client: DiscordClient) { _channel => _channel.id === client.config.ids.channelIDs.mensa, ) as TextChannel - channel.send({ embeds: [await mensa(client, weekday, 'adenauerring', null)] }) + const message = channel.send({ embeds: [await mensa(client, weekday, 'adenauerring', null)] }) + ;(await message).crosspost() }) }