You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know 2 people now who have been fooled by this, mainly because the parameter to Unicode is name, which implies that airplane should be put in instead of ✈️. However, the discord API (and kord by transitivity) expects ✈️. It's not intuitive because basically the entire rest of discord uses names for emojis, but reactions use raw emojis.
Solutions:
Change name to something else
Add KDoc
Do some basic validation, ie if (name.all { it.isLetterOrDigit }) and throw a descriptive error
The text was updated successfully, but these errors were encountered:
kord/core/src/main/kotlin/entity/ReactionEmoji.kt
Line 32 in a2912ab
I know 2 people now who have been fooled by this, mainly because the parameter to
Unicode
isname
, which implies thatairplane
should be put in instead of✈️
. However, the discord API (and kord by transitivity) expects✈️
. It's not intuitive because basically the entire rest of discord uses names for emojis, but reactions use raw emojis.Solutions:
name
to something elseif (name.all { it.isLetterOrDigit })
and throw a descriptive errorThe text was updated successfully, but these errors were encountered: