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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;