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\]/,