From 2e93852ffe5aeb42c6ea5811e9119cef4e2d1c91 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 15 May 2021 18:02:15 -0400 Subject: [PATCH] Fix --- commands/events/word-of-the-day.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/events/word-of-the-day.js b/commands/events/word-of-the-day.js index de08d770..b53813c9 100644 --- a/commands/events/word-of-the-day.js +++ b/commands/events/word-of-the-day.js @@ -29,7 +29,7 @@ module.exports = class WordOfTheDayCommand extends Command { try { const word = await this.fetchWordOfTheDay(); let data; - if (this.cache.word === word) { + if (this.cache?.word === word) { data = this.cache.data; } else { const { body } = await request