From 734ebc1b63f21f512e9919bf152863b2c06c579e Mon Sep 17 00:00:00 2001 From: n1ck_pro <59617443+N1ckPro@users.noreply.github.com> Date: Wed, 19 Jul 2023 13:07:19 +0200 Subject: [PATCH] types: use RoleFlags enum --- packages/discord.js/typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index cbc0725710d91..7d662b14d9763 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -161,7 +161,7 @@ import { APIGuildOnboardingPrompt, APIGuildOnboardingPromptOption, GuildOnboardingPromptType, - // RoleFlags, + RoleFlags, } from 'discord-api-types/v10'; import { ChildProcess } from 'node:child_process'; import { EventEmitter } from 'node:events'; @@ -2547,7 +2547,7 @@ export class Role extends Base { public toString(): RoleMention; } -export type RoleFlagsString = any; // keyof typeof RoleFlags; +export type RoleFlagsString = keyof typeof RoleFlags; export class RoleFlagsBitField extends BitField { public static Flags: Record;