From f2116c515ef05aec4abf5788dbee7e2c96f05822 Mon Sep 17 00:00:00 2001 From: Nils <7890309+DarkView@users.noreply.github.com> Date: Sun, 9 May 2021 03:00:44 +0200 Subject: [PATCH] Change ... to single char ... Co-authored-by: Almeida --- backend/src/plugins/ModActions/functions/banUserId.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/ModActions/functions/banUserId.ts b/backend/src/plugins/ModActions/functions/banUserId.ts index 618da9e4..ba41b729 100644 --- a/backend/src/plugins/ModActions/functions/banUserId.ts +++ b/backend/src/plugins/ModActions/functions/banUserId.ts @@ -87,7 +87,7 @@ export async function banUserId( const deleteMessageDays = Math.min(30, Math.max(0, banOptions.deleteMessageDays ?? 1)); // Trim down reason to 490 words, API limit is 512 and we leave a gap to accomodate cross-ban bots if (reason && reason.length >= 490) { - reason = reason.substring(0, 487) + "..."; + reason = reason.substring(0, 489) + "…"; } await pluginData.guild.bans.create(userId as Snowflake, { days: deleteMessageDays,