[Bug Report] CommandOption minValue and maxValue use incorrect types #312
Labels
status: pending
Awaiting response from a discord.jv dev
type: bug
Issue or PR is a bug that should be fixed
General Troubleshooting
Part of library impacted
com.seailz.discordjar.command.CommandOption record
Bug Report Description
the CommandOption record uses
int
s for theminValue
andmaxValue
fields, even though the api actually uses potentially decimals of range -2^53 to 2^53 for those values, this means the record is unable to accurately represent the value for options obtained from the discord api.additionally the constructor compile method and decompile method trap value
-1
and0
to represent the lack of min or max values, even though the api allows those valuesSteps to reproduce
The text was updated successfully, but these errors were encountered: