style: format recorder modules

This commit is contained in:
MythEclipse
2026-05-13 15:56:56 +07:00
parent dbe593c6fd
commit f655daa0c7
3 changed files with 15 additions and 5 deletions

View File

@@ -18,8 +18,11 @@ export async function collectUserMetadata(
member?.roles.cache
.filter((role) => role.id !== channel.guild.id)
.sort((a, b) => b.position - a.position)
.map((role) => ({ id: role.id, name: role.name, position: role.position })) ??
[];
.map((role) => ({
id: role.id,
name: role.name,
position: role.position,
})) ?? [];
return {
userId,