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,
|
round: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
let rolePermsArray: Array<string> = [];
|
const rolePerms = Object.keys(role.permissions.json).join(", ");
|
||||||
for (const [x, _x] of Object.entries(role.permissions.json)) {
|
|
||||||
rolePermsArray.push(x.toString());
|
|
||||||
}
|
|
||||||
const rolePerms = rolePermsArray.join(", ");
|
|
||||||
|
|
||||||
embed.fields.push({
|
embed.fields.push({
|
||||||
name: preEmbedPadding + "Role information",
|
name: preEmbedPadding + "Role information",
|
||||||
|
@ -52,7 +48,7 @@ export async function getRoleInfoEmbed(
|
||||||
ID: \`${role.id}\`
|
ID: \`${role.id}\`
|
||||||
Created: **${roleAge} ago** (\`${prettyCreatedAt}\`)
|
Created: **${roleAge} ago** (\`${prettyCreatedAt}\`)
|
||||||
Position: ${role.position}
|
Position: ${role.position}
|
||||||
Color: #${role.color.toString(16).toUpperCase()}
|
Color: #${role.color.toString(16).toUpperCase().padStart(6, "0")}
|
||||||
Mentionable: ${role.mentionable}
|
Mentionable: ${role.mentionable}
|
||||||
Hoisted: ${role.hoist}
|
Hoisted: ${role.hoist}
|
||||||
Managed: ${role.managed}
|
Managed: ${role.managed}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue