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