How to send() over 2000 characters without getting an error that my message is too long? #10737
-
Back in the day it seems you could just pass in a second argument, {split: true}, but I don't think you can do that anymore. Ideally I'd like it to split without me having to pass in any additional arguments at all. Right now I'm just using my own splitting wrapper function. Is there a better way within discordjs? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
See also: this point in the distant past when the problem was addressed: #653 And then this other point when it was still addressed: #856 |
Beta Was this translation helpful? Give feedback.
-
You can send the content as a file, that way you'll have millions of characters, although it has the caveat that currently text files don't embed on phones like they do on PC. Another alternative is to keep the content you send to Discord as reasonably concise as possible, such as summarizing the information you send or breaking it down in multiple parts using components, which has the added benefit that the user won't get overwhelmed and will find exactly what they're looking for. |
Beta Was this translation helpful? Give feedback.
we decided to drop in-library splitting because it has continuously lead to new edge cases we tried to work around (prefix and suffix codeblocks, etc. kept breaking for more and more edge cases every time we tried to address something).
a purpose-built splitter for your specific use case is the way to go
side note, if this isn't about massive amounts of text: embed descriptions allow more characters