mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-24 10:05:03 +00:00
Start move to d.js
This commit is contained in:
parent
2565c773bb
commit
9509be5e65
17 changed files with 339 additions and 6317 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Constants } from "eris";
|
||||
import { Permissions } from "discord.js";
|
||||
|
||||
const camelCaseToTitleCase = str =>
|
||||
str
|
||||
|
@ -10,9 +10,9 @@ const camelCaseToTitleCase = str =>
|
|||
const permissionNumberToName: Map<bigint, string> = new Map();
|
||||
const ignoredPermissionConstants = ["all", "allGuild", "allText", "allVoice"];
|
||||
|
||||
for (const key in Constants.Permissions) {
|
||||
for (const key in Permissions.FLAGS) {
|
||||
if (ignoredPermissionConstants.includes(key)) continue;
|
||||
permissionNumberToName.set(BigInt(Constants.Permissions[key]), camelCaseToTitleCase(key));
|
||||
permissionNumberToName.set(BigInt(Permissions.FLAGS[key]), camelCaseToTitleCase(key));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue