Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.71k stars 459 forks source link

docs: limits on integer and number option types #2462

Closed JustaSqu1d closed 2 months ago

JustaSqu1d commented 3 months ago

Summary

Many people seem to use SlashCommandOptionType.integer or similar for IDs. This change serves to clarify its limitations.

The superscripts seem to have extra spacing because of monospaces, but this looks fine-ish on the documentation.

Looking for feedback about whether the ID notes for SlashCommandOptionType.number are necessary or can be removed.

I'm not sure how to remove ambiguity with this change and with Option.max_value and Option.min_value since those can be used to change the range of accepted values.

image

Information

Checklist

plun1331 commented 3 months ago

Should probably just replace the docs for that instead of making a note

Dorukyum commented 3 months ago

Does specifying the limits as exponents of 2 actually help with anything?

JustaSqu1d commented 3 months ago

Does specifying the limits as exponents of 2 actually help with anything?

Would you rather have 9.0071992547*10^15? Or am I misunderstanding the question?

Dorukyum commented 3 months ago

Does specifying the limits as exponents of 2 actually help with anything?

Would you rather have 9.0071992547*10^15? Or am I misunderstanding the question?

You did get that right and I did mean that, but now I think we should specify both, like "9007199254740992 (2^53)".