GatewayIntents

@Serializable(with = GatewayIntentsSerializer::class)
data class GatewayIntents(val value: Int)(source)

An immutable collection of GatewayIntent values stored as a bitmask integer. This is intended for use when creating a Diskord bot instance to signal to the Discord API requested intents.

Note: All operations on GatewayIntents instances will create a new GatewayIntents instance.

Constructors

Link copied to clipboard
constructor(value: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
operator fun contains(intent: GatewayIntent): Boolean
operator fun contains(permissions: GatewayIntents): Boolean
Link copied to clipboard
operator fun minus(intent: GatewayIntent): GatewayIntents
operator fun minus(intents: GatewayIntents): GatewayIntents
operator fun minus(intents: Int): GatewayIntents
operator fun minus(intents: Collection<GatewayIntent>)
Link copied to clipboard
operator fun plus(intent: GatewayIntent): GatewayIntents
operator fun plus(intents: GatewayIntents): GatewayIntents
operator fun plus(intents: Int): GatewayIntents
operator fun plus(intents: Collection<GatewayIntent>)
Link copied to clipboard
open override fun toString(): String