mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 00:05:04 +00:00
Implement language based suggetions by @0kku
This commit is contained in:
parent
55e5ef3f74
commit
ce148c5e64
1 changed files with 2 additions and 6 deletions
|
@ -39,11 +39,7 @@ export async function getRoleInfoEmbed(
|
|||
round: true,
|
||||
});
|
||||
|
||||
let rolePermsArray: Array<string> = [];
|
||||
for (const [x, _x] of Object.entries(role.permissions.json)) {
|
||||
rolePermsArray.push(x.toString());
|
||||
}
|
||||
const rolePerms = rolePermsArray.join(", ");
|
||||
const rolePerms = Object.keys(role.permissions.json).join(", ");
|
||||
|
||||
embed.fields.push({
|
||||
name: preEmbedPadding + "Role information",
|
||||
|
@ -52,7 +48,7 @@ export async function getRoleInfoEmbed(
|
|||
ID: \`${role.id}\`
|
||||
Created: **${roleAge} ago** (\`${prettyCreatedAt}\`)
|
||||
Position: ${role.position}
|
||||
Color: #${role.color.toString(16).toUpperCase()}
|
||||
Color: #${role.color.toString(16).toUpperCase().padStart(6, "0")}
|
||||
Mentionable: ${role.mentionable}
|
||||
Hoisted: ${role.hoist}
|
||||
Managed: ${role.managed}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue