From 22bcb8ce8956219ca955e53dedbc1f7522e3c2a1 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 13 Jul 2022 11:04:20 +0300 Subject: [PATCH] bugfix --- src/structure/components/commands/moderation/History.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structure/components/commands/moderation/History.js b/src/structure/components/commands/moderation/History.js index f1eef3e..63f8d06 100644 --- a/src/structure/components/commands/moderation/History.js +++ b/src/structure/components/commands/moderation/History.js @@ -122,7 +122,8 @@ class HistoryCommand extends SlashCommand { } } }]); - const { points } = result; + let points = 0; + if (result) ({ points } = result); embed.footer.text += ` | ${points} Points`; }