Show permissions
This commit is contained in:
parent
0420fcd50c
commit
ac93981fd6
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ export default {
|
|||
// Show guild nickname
|
||||
if (member.nickname) Embed.addFields({ name: 'Nickname', value: member.nickname, inline: true });
|
||||
// Show member roles
|
||||
if (member.roles) Embed.addFields({ name: 'Roles', value: `${[...member.roles.cache.values()].join(', ')}` });
|
||||
if (member.roles) {
|
||||
Embed.addFields({ name: 'Roles', value: `${[...member.roles.cache.values()].join(', ')}` });
|
||||
Embed.addFields({ name: 'Permissions', value: `\`${member.permissions.toArray().join(', ')}\`` });
|
||||
}
|
||||
}
|
||||
|
||||
return interaction.reply({ embeds: [Embed] });
|
||||
|
|
Loading…
Reference in a new issue