From 8e84d39c7f2531e81eed3a9d01bf4030b19a2c88 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 14 Feb 2021 00:30:07 +0100 Subject: :sparkles: getPermission util function --- dist/server-util/src/util/Permissions.d.ts | 45 ------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 dist/server-util/src/util/Permissions.d.ts (limited to 'dist/server-util/src/util/Permissions.d.ts') diff --git a/dist/server-util/src/util/Permissions.d.ts b/dist/server-util/src/util/Permissions.d.ts deleted file mode 100644 index 8373f7c8..00000000 --- a/dist/server-util/src/util/Permissions.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { BitField } from "./BitField"; -export declare type PermissionResolvable = string | number | Permissions | PermissionResolvable[]; -export declare class Permissions extends BitField { - static FLAGS: { - CREATE_INSTANT_INVITE: bigint; - KICK_MEMBERS: bigint; - BAN_MEMBERS: bigint; - ADMINISTRATOR: bigint; - MANAGE_CHANNELS: bigint; - MANAGE_GUILD: bigint; - ADD_REACTIONS: bigint; - VIEW_AUDIT_LOG: bigint; - PRIORITY_SPEAKER: bigint; - STREAM: bigint; - VIEW_CHANNEL: bigint; - SEND_MESSAGES: bigint; - SEND_TTS_MESSAGES: bigint; - MANAGE_MESSAGES: bigint; - EMBED_LINKS: bigint; - ATTACH_FILES: bigint; - READ_MESSAGE_HISTORY: bigint; - MENTION_EVERYONE: bigint; - USE_EXTERNAL_EMOJIS: bigint; - VIEW_GUILD_INSIGHTS: bigint; - CONNECT: bigint; - SPEAK: bigint; - MUTE_MEMBERS: bigint; - DEAFEN_MEMBERS: bigint; - MOVE_MEMBERS: bigint; - USE_VAD: bigint; - CHANGE_NICKNAME: bigint; - MANAGE_NICKNAMES: bigint; - MANAGE_ROLES: bigint; - MANAGE_WEBHOOKS: bigint; - MANAGE_EMOJIS: bigint; - }; - any(permission: PermissionResolvable, checkAdmin?: boolean): boolean; - /** - * Checks whether the bitfield has a permission, or multiple permissions. - * @param {PermissionResolvable} permission Permission(s) to check for - * @param {boolean} [checkAdmin=true] Whether to allow the administrator permission to override - * @returns {boolean} - */ - has(permission: PermissionResolvable, checkAdmin?: boolean): boolean; -} -- cgit 1.5.1