From 7df6aafb17a79f278047a244d48c9fdde620811d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 1 Mar 2025 23:50:30 -0500 Subject: Putting fetching user id on the quote if statement --- commands/quote.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands') 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) -- cgit v1.2.3