diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-01 23:50:30 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-01 23:50:30 -0500 |
| commit | 7df6aafb17a79f278047a244d48c9fdde620811d (patch) | |
| tree | b071cf221d8cf47ec4f983486c375f5213d3c916 /commands | |
| parent | 1e2292f197ba69cc50d9471c8fac5951bcda4352 (diff) | |
| download | AleeBot-7df6aafb17a79f278047a244d48c9fdde620811d.tar.gz AleeBot-7df6aafb17a79f278047a244d48c9fdde620811d.tar.bz2 AleeBot-7df6aafb17a79f278047a244d48c9fdde620811d.zip | |
Putting fetching user id on the quote if statement
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/quote.js | 3 |
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) |
