-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
| public data class Unicode(override val name: String) : ReactionEmoji() { |
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
nameto something else - Add KDoc
- Do some basic validation, ie
if (name.all { it.isLetterOrDigit })and throw a descriptive error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels