Show permissions

This commit is contained in:
Supositware 2022-10-07 01:33:47 +02:00
parent 0420fcd50c
commit ac93981fd6

View file

@ -58,7 +58,10 @@ export default {
// Show guild nickname // Show guild nickname
if (member.nickname) Embed.addFields({ name: 'Nickname', value: member.nickname, inline: true }); if (member.nickname) Embed.addFields({ name: 'Nickname', value: member.nickname, inline: true });
// Show member roles // 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] }); return interaction.reply({ embeds: [Embed] });