From a39e3597597e7fc189aef078138ea40641787729 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 16 Dec 2023 22:57:53 +0100 Subject: [PATCH] fix /help buttons if undefined links in config --- src/interactions/commands/info/help.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactions/commands/info/help.ts b/src/interactions/commands/info/help.ts index 54810a0..7260e16 100644 --- a/src/interactions/commands/info/help.ts +++ b/src/interactions/commands/info/help.ts @@ -61,7 +61,7 @@ class HelpCommand extends BaseSlashCommandInteraction { .setDescription(`${this.embedOptions.icons.rule} **List of commands**\n` + commandEmbedString) .setColor(this.embedOptions.colors.info) ], - components: [embedActionRow] + components: components.length > 0 ? [embedActionRow] : [] }); }