ClemBotProject/ClemBot

Bug: Starboard Splitting Emoji in Long Message

Closed this issue · 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).

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 what was the reasoning for splitting the message like that if it isnt paginated?

Why do we split on 1024?

Yes

Yes

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

Ohhh. That makes more sense