modrunner / discord-bot

Node.js application powering the Modrunner Discord bot.
https://modrunner.net
Apache License 2.0
12 stars 5 forks source link

Custom truncation of changelogs in update notification embeds #53

Closed smcmo closed 1 year ago

smcmo commented 2 years ago

Currently, the changelogs in update notification embeds (normal display mode) are hard-coded to be truncated at 4000 characters (the max size of an embed's description field). This is generally fine as most project changelogs tend to be less than 200 characters in size, but with larger changelogs this creates extremely tall walls of text in embeds that may be unwanted.

Example: image

We should allow users to define at what length they want their changelogs truncated to, so that excessively large changelogs are not posted in their entirety. Idealy, this would be a setting we would store in the Guilds table settings in the database, so that it is enforced guild-wide.