ClemBot icon indicating copy to clipboard operation
ClemBot copied to clipboard

Bug: Starboard Splitting Emoji in Long Message

Open Exper1mental opened this issue 3 years ago • 6 comments

In long messages, starboard will just split the message (I'm assuming at 1024 characters?) regardless of what is there.

For example: image

Instead, starboard should split the message at the most recent space in the text (or something like that), and only split at the 1024th character if no such space can be found (such as for a really long URL).

Exper1mental avatar Mar 23 '22 16:03 Exper1mental

This is a good idea, however it is more complicated then it looks. This has partly already been done in the source_code_cog.py file if anyone wants to look there. I would accept a PR, starboard needs some TLC

Jay-Madden avatar Mar 27 '22 14:03 Jay-Madden

@Jay-Madden what was the reasoning for splitting the message like that if it isnt paginated?

smathep avatar Oct 15 '22 01:10 smathep

Why do we split on 1024?

Jay-Madden avatar Oct 15 '22 01:10 Jay-Madden

Yes

smathep avatar Oct 15 '22 02:10 smathep

Yes

It's the field limit for discord's embeds.

jkriste avatar Oct 15 '22 02:10 jkriste

Ohhh. That makes more sense

smathep avatar Oct 15 '22 02:10 smathep