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!`);