Intents

A set of intents to be used while identifying a Gateway connection to communicate the events the client wishes to receive.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class IntentsBuilder(code: DiscordBitSet = EmptyBitSet())

Functions

Link copied to clipboard
operator fun contains(intent: Intent): Boolean
operator fun contains(intent: Intents): Boolean
Link copied to clipboard
inline fun copy(block: Intents.IntentsBuilder.() -> Unit): Intents

copy this Intents and apply the block to it.

Link copied to clipboard
operator fun minus(intent: Intent): Intents
operator fun minus(intent: Intents): Intents

Returns an Intents that removed the intent from this code.

Link copied to clipboard
operator fun plus(intent: Intent): Intents
operator fun plus(intent: Intents): Intents

Returns an Intents that added the intent to this code.

Properties

Link copied to clipboard
val code: DiscordBitSet
Link copied to clipboard

Returns this Intents as a Set of Intent