Fix softAssert when sending reaction

This commit is contained in:
Josh Perez
2023-10-23 12:40:09 -04:00
committed by GitHub
parent 0ecbc7518a
commit 50a2ddf4b2

View File

@@ -173,6 +173,11 @@ export async function sendReaction(
})
),
});
// Adds the reaction's attributes to the message cache so that we can
// safely `set` on it later.
window.MessageCache.toMessageAttributes(
ephemeralMessageForReactionSend.attributes
);
ephemeralMessageForReactionSend.doNotSave = true;