Commit 1a2288f 1 parent d32fca7 commit 1a2288f Copy full SHA for 1a2288f
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const { totalDays } = require('./util-functions')
10
10
/**
11
11
* To add the given log into the record of the sender
12
12
* @param {Message } msg Discord Message prefix '++add'
13
- * @returns
13
+ * @returns { Promise<Message>|<Message[]> } the new DIscord Message sent from the bot
14
14
*/
15
15
const add = async ( msg ) => {
16
16
/**
@@ -69,8 +69,10 @@ const add = async (msg) => {
69
69
}
70
70
71
71
/**
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 '
73
74
* @param {Message } msg Discord Message with prefix '++update'
75
+ * @return {Promise<Message>|<Message[]> } the new DIscord Message sent from the bot
74
76
*/
75
77
const update = async ( msg ) => {
76
78
/**
You can’t perform that action at this time.
0 commit comments