mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat(Role): add flags (#9694)
* feat(Role): add `flags` * types: use RoleFlags enum * Update packages/discord.js/typings/index.d.ts Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com> --------- Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com>
This commit is contained in:
9
packages/discord.js/typings/index.d.ts
vendored
9
packages/discord.js/typings/index.d.ts
vendored
@@ -167,6 +167,7 @@ import {
|
||||
APIGuildOnboardingPromptOption,
|
||||
GuildOnboardingPromptType,
|
||||
AttachmentFlags,
|
||||
RoleFlags,
|
||||
} from 'discord-api-types/v10';
|
||||
import { ChildProcess } from 'node:child_process';
|
||||
import { EventEmitter } from 'node:events';
|
||||
@@ -2524,6 +2525,7 @@ export class Role extends Base {
|
||||
public get createdAt(): Date;
|
||||
public get createdTimestamp(): number;
|
||||
public get editable(): boolean;
|
||||
public flags: RoleFlagsBitField;
|
||||
public guild: Guild;
|
||||
public get hexColor(): HexColorString;
|
||||
public hoist: boolean;
|
||||
@@ -2559,6 +2561,13 @@ export class Role extends Base {
|
||||
public toString(): RoleMention;
|
||||
}
|
||||
|
||||
export type RoleFlagsString = keyof typeof RoleFlags;
|
||||
|
||||
export class RoleFlagsBitField extends BitField<RoleFlagsString> {
|
||||
public static Flags: typeof RoleFlags;
|
||||
public static resolve(bit?: BitFieldResolvable<RoleFlagsString, number>): number;
|
||||
}
|
||||
|
||||
export class StringSelectMenuInteraction<
|
||||
Cached extends CacheType = CacheType,
|
||||
> extends MessageComponentInteraction<Cached> {
|
||||
|
||||
Reference in New Issue
Block a user