From c5cacbb78b02ebcc0041af165bfd54f5a2ebdb11 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 16 Oct 2022 20:09:59 +0200 Subject: [PATCH] Maybe fix that thing --- utils/rand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/rand.js b/utils/rand.js index 9e31ec1..f626e5a 100644 --- a/utils/rand.js +++ b/utils/rand.js @@ -26,7 +26,7 @@ export function rand(text, interaction) { const variables = [ { name: /\[author\]/, - value: interaction ? interaction.author.username : '', + value: interaction ? interaction.author ? interaction.author.username : '' : '', }, { name: /\[member\]/,