mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
feat(Role): add flags (#9694)
Co-authored-by: n1ck_pro <59617443+N1ckPro@users.noreply.github.com>
This commit is contained in:
9
typings/index.d.ts
vendored
9
typings/index.d.ts
vendored
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user