SEbbaDK / sonica

Music playing daemon and clients, acting as a FOSS party music player alternative to Spotify playlists.
GNU General Public License v3.0
4 stars 0 forks source link

discord: Check for messages exceeding 2000 character limit #2

Closed SEbbaDK closed 2 years ago

SEbbaDK commented 3 years ago

Sonica will gladly try to send a message that is over the limit, causing a command abort.

SEbbaDK commented 3 years ago

@Rawrior how should we handle this? split it up? let it throw the current error? use an ellipsis? (...)

Rawrior commented 3 years ago

@Rawrior how should we handle this? split it up? let it throw the current error? use an ellipsis? (...)

I imagine the queue and up next would be the culprits of this possible error. We could truncate each to X many entries and indicate that there is more with either "And some more..." or just an ellipsis.