diff --git a/utils/rand.js b/utils/rand.js index 9e31ec11..f626e5ae 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\]/,