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

bug: very long announcements not sending #163

Closed
elijaholmos opened this issue Jan 30, 2023 · 1 comment · Fixed by #172
Closed

bug: very long announcements not sending #163

elijaholmos opened this issue Jan 30, 2023 · 1 comment · Fixed by #172

Comments

@elijaholmos
Copy link
Owner

caught this rare bug in the logs:
image

has to do with discord.js's builtin message splitting method

@elijaholmos
Copy link
Owner Author

#172 resolves this by splitting up long (un)ordered lists into newlines. However, if an announcement is posted without any line breaks, it still may not be sent due to Discord's content restrictions. in this case, I would need to modify the split regex method to split on a space character and force an unnatural break in the message

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