revoltchat / revolt.js

Modern Typescript library for interacting with Revolt.
https://revolt.js.org
MIT License
216 stars 54 forks source link

Small Readme Bugs . channel!.sendMessage and user!.username #58

Closed kardespro closed 2 years ago

kardespro commented 2 years ago

Small Readme Bugs . channel!.sendMessage and user!.username

Please make sure to check the following tasks before opening and submitting a PR

Rexogamer commented 2 years ago

As far as I know, these are nullable - the exclamation marks are for TypeScript.

kardespro commented 2 years ago

As far as I know, these are nullable - the exclamation marks are for TypeScript.

No

insertish commented 2 years ago

All of the values in question are nullable.

insertish commented 2 years ago

https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#non-null-assertion-operator-postfix-