aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/quote.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/quote.js b/commands/quote.js
index 72bd07b..2e3b557 100644
--- a/commands/quote.js
+++ b/commands/quote.js
@@ -30,9 +30,8 @@ module.exports.run = async (client, message, args) => {
const quote = await quoteDB.findOne({ where: { id: quoteID } });
- let userSubmitter = await client.users.fetch(quote.submitter);
-
if (quote) {
+ let userSubmitter = await client.users.fetch(quote.submitter);
const quoteEmbed = new MessageEmbed()
.setAuthor({ name: quote.author, iconURL: quote.authorImage })
.setDescription(quote.quote)