3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00
This commit is contained in:
Jonathan B 2020-10-09 14:55:07 +02:00
parent 3aaf012008
commit d3e619796c

View file

@ -17,8 +17,8 @@ export async function getRoleInfoEmbed(
}
const embed: EmbedOptions = {
fields: []
}
fields: [],
};
// TODO Perhaps use a '@' as icon?
// embed.author = {
@ -36,14 +36,14 @@ export async function getRoleInfoEmbed(
const prettyCreatedAt = tzCreatedAt.format(timeAndDate.getDateFormat("pretty_datetime"));
const roleAge = humanizeDuration(Date.now() - role.createdAt, {
largest: 2,
round: true
round: true,
});
let rolePermsArray : Array<string> = [];
let rolePermsArray: Array<string> = [];
for (const [x, _x] of Object.entries(role.permissions.json)) {
rolePermsArray.push(x.toString())
rolePermsArray.push(x.toString());
}
const rolePerms = rolePermsArray.join(', ')
const rolePerms = rolePermsArray.join(", ");
embed.fields.push({
name: preEmbedPadding + "Role information",