Rewrite createdate and joindate gets
Update botinfo to work with new getCreationDate Update userinfo to work with new getCreationDate Update userinfo to work with new getJoinDate
This commit is contained in:
parent
0d5502bc92
commit
49e6eaed11
6 changed files with 19 additions and 44 deletions
5
util/getJoinDate.js
Normal file
5
util/getJoinDate.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
module.exports = function(user, guild){
|
||||
const member = guild.member(user)
|
||||
let date = member.joinedAt;
|
||||
return date.getUTCFullYear().toString()+"-"+date.getUTCMonth()+"-"+date.getUTCDate()+" "+date.getUTCHours()+":"+date.getUTCMinutes()+":"+date.getUTCSeconds();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue