mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
rename record
This commit is contained in:
parent
95365d8573
commit
d7dc840778
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ import humanizeDuration from "humanize-duration";
|
|||
import { GuildPluginData } from "knub";
|
||||
import moment from "moment-timezone";
|
||||
import { EmbedWith, preEmbedPadding, trimLines } from "../../../utils";
|
||||
import { permissionNames } from "../../../utils/permissionNames.js";
|
||||
import { PERMISSION_NAMES } from "../../../utils/permissionNames.js";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||
import { UtilityPluginType } from "../types";
|
||||
|
||||
|
@ -37,8 +37,8 @@ export async function getRoleInfoEmbed(
|
|||
});
|
||||
|
||||
const rolePerms = role.permissions.has(Permissions.FLAGS.ADMINISTRATOR)
|
||||
? [permissionNames.ADMINISTRATOR]
|
||||
: role.permissions.toArray().map((p) => permissionNames[p]);
|
||||
? [PERMISSION_NAMES.ADMINISTRATOR]
|
||||
: role.permissions.toArray().map((p) => PERMISSION_NAMES[p]);
|
||||
|
||||
// -1 because of the @everyone role
|
||||
const totalGuildRoles = pluginData.guild.roles.cache.size - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue