/[sudobot]/trunk/src/commands/information/ProfileCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/information/ProfileCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 64 by rakin, Mon Jul 29 17:28:27 2024 UTC revision 263 by rakin, Mon Jul 29 17:29:16 2024 UTC
# Line 112  export default class ProfileCommand exte Line 112  export default class ProfileCommand exte
112                      },                      },
113                      {                      {
114                          name: 'Roles',                          name: 'Roles',
115                          value: user?.roles.cache.filter(role => role.id !== msg.guild!.id).reduce((acc, value) => `${acc} ${roleMention(value.id)}`, '')!.trim()!                          value: user?.roles.cache.filter(role => role.id !== msg.guild!.id).sort((role1, role2) => {
116                                return role2.position - role1.position;
117                            }).reduce((acc, value) => `${acc} ${roleMention(value.id)}`, '')!.trim()!
118                      }                      }
119                  ])                  ])
120              ]              ]

Legend:
Removed from v.64  
changed lines
  Added in v.263

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26