fix: don't emit ephemeral interaction replies to channel, but only to user instead
This commit is contained in:
parent
8befb85f48
commit
df80d2070c
@ -96,7 +96,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
|
|||||||
|
|
||||||
emitEvent({
|
emitEvent({
|
||||||
event: "MESSAGE_CREATE",
|
event: "MESSAGE_CREATE",
|
||||||
channel_id: interaction.channelId,
|
...((message.flags & (1 << 6)) === 0 ? { channel_id: interaction.channelId } : { user_id: interaction.userId }),
|
||||||
data: {
|
data: {
|
||||||
application_id: interaction.applicationId,
|
application_id: interaction.applicationId,
|
||||||
attachments: message.attachments,
|
attachments: message.attachments,
|
||||||
|
|||||||
Reference in New Issue
Block a user