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

Bot fails to send response if answer is more than 2000 characters #2

Open
shamoilarsi opened this issue Jul 14, 2024 · 1 comment · May be fixed by #3
Open

Bot fails to send response if answer is more than 2000 characters #2

shamoilarsi opened this issue Jul 14, 2024 · 1 comment · May be fixed by #3

Comments

@shamoilarsi
Copy link

Discord has a limit of 2000 characters for a message.
if the limit is exceeded, bot fails to send any response with the following error

DiscordAPIError[50035]: Invalid Form Body
content[BASE_TYPE_MAX_LENGTH]: Must be 2000 or fewer in length.
@shamoilarsi
Copy link
Author

A solution I propose is to divide the answer into chunks of 2000s or fewer and send them in multiple messages.
I could raise a PR for this

@shamoilarsi shamoilarsi linked a pull request Jul 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant