Merge pull request #100 from hcs1219/patch-2

Update userinfo.js
This commit is contained in:
Night 2023-05-21 22:21:37 +01:00 committed by GitHub
commit 60e761a8e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,8 +33,7 @@ module.exports = {
const roles = member.roles.cache const roles = member.roles.cache
.filter(r => r.id != interaction.guild.id) .filter(r => r.id != interaction.guild.id)
.sort((a, b) => b.position - a.position) .sort((a, b) => b.position - a.position)
.map(role => role.toString()) .map(role => role.toString());
.slice(0, -1);
const createDateFormatted = utils.parseDate( const createDateFormatted = utils.parseDate(
new Date(member.user.createdAt) new Date(member.user.createdAt)
); );