Skip to content

Commit

Permalink
types: use RoleFlags enum
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ckPro committed Jul 19, 2023
1 parent b8809f7 commit 734ebc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<RoleFlagsString> {
public static Flags: Record<RoleFlagsString, number>;
Expand Down

0 comments on commit 734ebc1

Please sign in to comment.