OceanicJS / Oceanic

A NodeJS library for interfacing with Discord.
https://oceanic.ws
MIT License
269 stars 25 forks source link

Name Localizations are not registered in "choices" #152

Closed LonelyDeathVGX closed 7 months ago

LonelyDeathVGX commented 7 months ago

If a command with an option that has the "choices" property with the "nameLocalizations" property, the locations are not registered correctly

The properties of "choices" should be passed to "raw" instead of registering it as is

https://github.com/OceanicJS/Oceanic/blob/e86de31c601025b2bcde6dcfda1b30366bbbdf31/lib/util/Util.ts#L481