Skip to content
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

Change custom_emoji_id Type to string in setEmojiStatus #27

Merged

Conversation

Malith-Rukshan
Copy link
Contributor

🛠 Fix: Change custom_emoji_id Type to string in setEmojiStatus

🎯 This pull request changes the type of custom_emoji_id in the setEmojiStatus method from number to string to handle large custom_emoji_id values without precision loss.

📚 The custom_emoji_id values, such as 5373141891321699086, are too large to be accurately represented as JavaScript numbers due to the 64-bit floating-point representation, which can lead to precision issues. By changing the type to string, we ensure that custom_emoji_id values are accurately passed to the setEmojiStatus method without losing precision.

@DavisDmitry
Copy link
Owner

@Malith-Rukshan thanks for your contribution

@DavisDmitry DavisDmitry merged commit cd50490 into DavisDmitry:master Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants