Repository navigation
TopHelpersCommand message is too long - #614
Conversation
68a7866 to
3a94d89
Compare
Tais993
left a comment
There was a problem hiding this comment.
Can you add screenshots of how it looks now?
Tais993
left a comment
There was a problem hiding this comment.
next time give screenshot of before your changes and after.
Would make it a little easier to understand what actually changed
sure. was just a bit difficult, since i dont have 20+ users on my private server to make the problem obvious. and i was too lazy to mock the DB just for screenshots. and the real tables from PROD contained sensitive info that i also was too lazy to mock lol. but yeah, agreed. |
* limit long user names * move description before table * reduce amount of helpers listed
8cb5b76 to
4944510
Compare
|
just rebased, no code changes. already had 2 approvals. merging once pipeline succeeds |
|
Kudos, SonarCloud Quality Gate passed! |








Overview
Fixes #603 which describes a bug when using
/top-helpersresulting in a too long message, not accepted by Discord.The approach is simple yet effective:
these factors effectively reduced the message that was too long from 2300 characters down to 1100 characters, which is perfectively within limits.
Notes
Since this class also needed abbreviation logic, I elevated the
abbreviatemethod from within theDiscordLogForwardertoMessageUtils. And also gave it a unit test.