New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added bannerURL/splashURL typings #597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also add splashURL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using ?
to mark something as optional makes typescript understand it as if it is undefined
. The actual behavior in Eris never allows this to be undefined. It marks it as null
making this optional and not explicitly null can cause issues to end users.
Co-Authored-By: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-Authored-By: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Wasn't aware those would return null as opposed to undefined, thanks for letting me know. |
No description provided.