feat(Role): add flags (#9694)

Co-authored-by: n1ck_pro <59617443+N1ckPro@users.noreply.github.com>
This commit is contained in:
Jaw0r3k
2023-08-12 14:18:50 +02:00
committed by Vlad Frangu
parent d0fd79c14a
commit a222e537c1
4 changed files with 68 additions and 0 deletions

9
typings/index.d.ts vendored
View File

@@ -2159,6 +2159,7 @@ export class Role extends Base {
/** @deprecated This will be removed in the next major version, see https://github.com/discordjs/discord.js/issues/7091 */
public deleted: boolean;
public readonly editable: boolean;
public flags: Readonly<RoleFlags>;
public guild: Guild;
public readonly hexColor: HexColorString;
public hoist: boolean;
@@ -2194,6 +2195,14 @@ export class Role extends Base {
public static comparePositions(role1: Role, role2: Role): number;
}
export class RoleFlags extends BitField<RoleFlagsString> {
public static FLAGS: Record<RoleFlagsString, number>;
public static resolve(bit?: BitFieldResolvable<RoleFlagsString, number>): number;
}
export type RoleFlagsString =
| 'IN_PROMPT';
export class SelectMenuInteraction<Cached extends CacheType = CacheType> extends MessageComponentInteraction<Cached> {
public constructor(client: Client, data: RawMessageSelectMenuInteractionData);
public readonly component: CacheTypeReducer<