From 956f76beb713fb1a73add6c89ebd3a0ce50ab642 Mon Sep 17 00:00:00 2001 From: Sakurajimai#6742 <56829176+maisans-maid@users.noreply.github.com> Date: Fri, 8 Jan 2021 00:07:25 +0800 Subject: [PATCH] (fix): bug on tip command (#70) --- commands/social/tip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/social/tip.js b/commands/social/tip.js index e5e8d711..48fe24ac 100644 --- a/commands/social/tip.js +++ b/commands/social/tip.js @@ -10,7 +10,7 @@ module.exports = { description: 'Give tip to your friends!', requiresDatabase: true, get examples(){ return [this.name, ...this.aliases];}, - run: (client, message, user) => profile.findById(message.author.id, async (err, tipper) => { + run: (client, message, [user='']) => profile.findById(message.author.id, async (err, tipper) => { if (err){ return message.channel.send(`\`❌ [DATABASE_ERR]:\` Unable to save the document to the database, please try again later!`);