Skip to content

Commit

Permalink
(fix): bug on tip command (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
maisans-maid authored Jan 7, 2021
1 parent 9f8e25f commit 956f76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/social/tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!`);
Expand Down

0 comments on commit 956f76b

Please sign in to comment.