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

Account for Discord embed character limits #2

Open
KevinPayravi opened this issue Jul 3, 2021 · 0 comments
Open

Account for Discord embed character limits #2

KevinPayravi opened this issue Jul 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@KevinPayravi
Copy link
Member

Discord embed fields have a character limit of 1,024. If a wiki has Cargo tables with long names, it's possible that the payload's list of tables becomes too long, causing Discord to return a 400 error when POSTing the embed.

As the script iterates over each table, it should check to make sure the list's char limit won't be exceeded if the table name is added to it. If it is, the script should stop adding to the list + add a note that the list has been truncated.

@KevinPayravi KevinPayravi added the bug Something isn't working label Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant