Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* types: use Snowflake type * Update typings/index.d.ts Co-authored-by: Jan <[email protected]> Co-authored-by: Jan <[email protected]>
- Loading branch information
76db642
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.
After this merge, my cache
get
's give the errorArgument of type 'string' is not assignable to parameter of type '\
${bigint}`'`Example:
When I view the Snowflake reference on master, it still mentions the type
string
being acceptable. Should I be modifying all of my variable types to be bigint instead of string for these? In my data store, they're stored as bigint so it's not that big of a deal, it's more of a question of semantics of using these methods.https://discord.js.org/#/docs/main/master/typedef/Snowflake
76db642
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.
This is surely not the right place to ask this.
However, yes. Snowflakes are numbers in a string format and this commit tightened the rules for this quite a bit.