Skip to content

Commit 1a2288f

Browse files
Update util-add.js
1 parent d32fca7 commit 1a2288f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

util-add.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { totalDays } = require('./util-functions')
1010
/**
1111
* To add the given log into the record of the sender
1212
* @param {Message} msg Discord Message prefix '++add'
13-
* @returns
13+
* @returns {Promise<Message>|<Message[]>} the new DIscord Message sent from the bot
1414
*/
1515
const add = async (msg) => {
1616
/**
@@ -69,8 +69,10 @@ const add = async (msg) => {
6969
}
7070

7171
/**
72-
*
72+
* To clear out all the logs of current day for the author of the message
73+
* And add only the log present in the content with prefix '++update '
7374
* @param {Message} msg Discord Message with prefix '++update'
75+
* @return {Promise<Message>|<Message[]>} the new DIscord Message sent from the bot
7476
*/
7577
const update = async (msg) => {
7678
/**

0 commit comments

Comments
 (0)