'premium_subscriber' should be a boolean #4172
-
When implementing our library, I've noticed an odd type choice for Role tags. How its defined{
"premium_subscriber": null, // is the subscriber role.
}
{
// field isn't here meaning it isn't the subscriber role.
} Maybe this should be looked over again and changed to be a boolean property? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I understand why the value is A little bit more about my own experience: In Lua (and probably other languages), there is no equivalent of JavaScript's explicit Popular libraries such as cjson and dkjson use custom objects as a stand-in for an explicit My Discord library uses an explicit a I will probably eventually come up with a solution for all of this, and if anyone wants to talk about that, we can move to a different forum, but it would be nice if the consistency was ironed out on the API side. |
Beta Was this translation helpful? Give feedback.
-
Taken from discord by night#1337
|
Beta Was this translation helpful? Give feedback.
Taken from discord by night#1337