From 0d6d1b362b9c3c2acbbe473769c9232a91ced55a Mon Sep 17 00:00:00 2001 From: Maddy Date: Mon, 21 Aug 2023 03:03:43 +0200 Subject: [PATCH] Slice to 25 errors at most just in case --- src/commands/ReactionRoleCommand.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/commands/ReactionRoleCommand.ts b/src/commands/ReactionRoleCommand.ts index 6d4ea2e..2131bf3 100644 --- a/src/commands/ReactionRoleCommand.ts +++ b/src/commands/ReactionRoleCommand.ts @@ -416,10 +416,12 @@ export class ReactionRoleCommand extends Subcommand { const embed = new EmbedBuilder() .setTitle("Reaction role verification") .addFields( - ...Array.from(errors).map((error, index) => ({ - name: `Error ${index + 1}`, - value: error, - })), + ...Array.from(errors) + .map((error, index) => ({ + name: `Error ${index + 1}`, + value: error, + })) + .slice(0, 25), ) .setColor(BOT_EMBED_COLOR)