wakfi / roboboi

Discord bot
MIT License
2 stars 0 forks source link

Poll questions over 256 characters long cause an error which makes poll creation fail #8

Open wakfi opened 4 years ago

wakfi commented 4 years ago

Embed titles are limited to 256 characters, and the question is placed in the title field. A check needs to be placed on the input before continuing to ensure it is permissable. This restriction also extends to field titles, which I believe options are placed in, so the same restriction/check would need to be present there, or alternatively just move the whole thing to the description which is longer and I think less restrictive in general.

wakfi commented 4 years ago

The results embed has extra characters in the title such as "results for:" which need to either be accounted for in the original limit or removed

wakfi commented 4 years ago

Extension, field values have a character limit of 1024 so options length needs to be validated too