Birb / SystemChannelFlags
Class: SystemChannelFlags
Hierarchy
-
Bitfield<SystemChannelFlagsString>↳
SystemChannelFlags
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SystemChannelFlags(bits?)
The Intents Bitfield stores bits as bigints.
Parameters
| Name | Type | Description |
|---|---|---|
bits? | number | bigint | The bigint or number representation of the Bitfield. |
Overrides
Defined in
src/classes/bitfields/SystemChannelFlags.ts:24
Properties
bits
• bits: bigint
The bits as a bigint.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:10
FLAGS
▪ Static Readonly FLAGS: Object = SystemChannelFlag
The possible Intents the client can use.
Type declaration
| Name | Type |
|---|---|
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS | bigint |
SUPPRESS_JOIN_NOTIFICATIONS | bigint |
SUPPRESS_JOIN_NOTIFICATION_REPLIES | bigint |
SUPPRESS_PREMIUM_SUBSCRIPTIONS | bigint |
Defined in
src/classes/bitfields/SystemChannelFlags.ts:17
Methods
add
▸ add(…flags): SystemChannelFlags
Adds bits to the Bitfield.
Parameters
| Name | Type | Description |
|---|---|---|
...flags | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES">[] | The BitResolvable(s) to add. |
Returns
The updated Bitfield instance.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:79
clone
▸ clone(): SystemChannelFlags
Clones the Bitfield.
Returns
The cloned Bitfield.
Overrides
Defined in
src/classes/bitfields/SystemChannelFlags.ts:28
convert
▸ convert(flags): bigint
Converts a BitResolvable to a bigint.
Parameters
| Name | Type | Description |
|---|---|---|
flags | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES"> | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES">[] | The BitResolvable(s) to convert. |
Returns
bigint
The bigint representation of the BitResolvable(s).
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:43
has
▸ has(…flags): boolean
Checks if the Bitfield has the given flag.
Parameters
| Name | Type | Description |
|---|---|---|
...flags | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES">[] | The BitResolvable(s) to check. |
Returns
boolean
Whether the Bitfield has the given flag(s).
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:127
isEmpty
▸ isEmpty(): boolean
Checks if the Bitfield is empty.
Returns
boolean
Whether the Bitfield is empty.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:136
isLocked
▸ isLocked(): boolean
Check if the Bitfield is locked.
Returns
boolean
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:178
remove
▸ remove(…flags): SystemChannelFlags
Removes bits from the Bitfield.
Parameters
| Name | Type | Description |
|---|---|---|
...flags | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES">[] | The BitResolvable(s) to remove. |
Returns
The updated Bitfield instance.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:111
set
▸ set(…flags): SystemChannelFlags
Sets the contents of the Bitfield.
Parameters
| Name | Type | Description |
|---|---|---|
...flags | BitResolvable<"SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES">[] | The BitResolvable(s) to set. |
Returns
The updated Bitfield instance.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:95
toArray
▸ toArray(): ("SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES")[]
Converts the Bitfield to an array of strings.
Returns
("SUPPRESS_JOIN_NOTIFICATIONS" | "SUPPRESS_PREMIUM_SUBSCRIPTIONS" | "SUPPRESS_GUILD_REMINDER_NOTIFICATIONS" | "SUPPRESS_JOIN_NOTIFICATION_REPLIES")[]
The array of strings representation of the Bitfield.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:154
toBigInt
▸ toBigInt(): bigint
Converts the Bitfield to a bigint.
Returns
bigint
The bigint representation of the Bitfield.
Inherited from
Defined in
src/classes/bitfields/Bitfield.ts:145