From 15e5ad88af0f7189b19d054fef522d15295e459f Mon Sep 17 00:00:00 2001 From: RNLFoof Date: Mon, 4 Mar 2024 17:07:51 -0500 Subject: [PATCH] m->d: Disambiguated the desc of splitDisplayName --- m2d/converters/event-to-message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m2d/converters/event-to-message.js b/m2d/converters/event-to-message.js index 88b60d1..d589277 100644 --- a/m2d/converters/event-to-message.js +++ b/m2d/converters/event-to-message.js @@ -264,8 +264,8 @@ async function getMemberFromCacheOrHomeserver(roomID, mxid, api) { } /** - * Splits a display name into one chunk containing <=80 characters, and another chunk containing the rest of the characters. Splits on - * whitespace if possible. + * Splits a display name into one chunk containing <=80 characters (80 being how many characters Discord allows for the name of a webhook), + * and another chunk containing the rest of the characters. Splits on whitespace if possible. * These chunks, respectively, go in the display name, and at the top of the message. * If the second part isn't empty, it'll also contain boldening markdown and a line break at the end, so that regardless of its value it * can be prepended to the message content as-is.