This commit is contained in:
Dragon Fire
2021-05-15 18:02:15 -04:00
parent 7b6cd29039
commit 2e93852ffe
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class WordOfTheDayCommand extends Command {
try { try {
const word = await this.fetchWordOfTheDay(); const word = await this.fetchWordOfTheDay();
let data; let data;
if (this.cache.word === word) { if (this.cache?.word === word) {
data = this.cache.data; data = this.cache.data;
} else { } else {
const { body } = await request const { body } = await request