fix: don't emit ephemeral interaction replies to channel, but only to user instead

This commit is contained in:
CyberL1 2025-10-19 22:23:33 +02:00 committed by Rory&
parent 8befb85f48
commit df80d2070c

View File

@ -96,7 +96,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
emitEvent({
event: "MESSAGE_CREATE",
channel_id: interaction.channelId,
...((message.flags & (1 << 6)) === 0 ? { channel_id: interaction.channelId } : { user_id: interaction.userId }),
data: {
application_id: interaction.applicationId,
attachments: message.attachments,