Update userinfo.js

This commit is contained in:
hcs1219 2023-05-22 02:08:27 +08:00 committed by GitHub
parent e7f4d3ff59
commit 411c084d46
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
.filter(r => r.id != interaction.guild.id)
.sort((a, b) => b.position - a.position)
.map(role => role.toString())
.slice(0, -1);
.map(role => role.toString());
const createDateFormatted = utils.parseDate(
new Date(member.user.createdAt)
);