Intents

@JvmName(name = "Intents0")
inline fun Intents(builder: Intents.Builder.() -> Unit = {}): Intents(source)

Returns an instance of Intents built with Intents.Builder.


fun Intents(vararg flags: Intent): Intents(source)
fun Intents(vararg flags: Intents): Intents(source)
@JvmName(name = "Intents0")
fun Intents(flags: Iterable<Intents>): Intents(source)

Returns an instance of Intents that has all bits set that are set in any element of flags.


inline fun Intents(builder: Intents.IntentsBuilder.() -> Unit = {}): Intents(source)

Deprecated (with error)

'Intents.IntentsBuilder' is deprecated, use 'Intents.Builder' instead.


Deprecated (with error)

Don't construct an instance of 'Intents' from a raw value. Use the factory functions described in the documentation instead.

Replace with

import dev.kord.gateway.Intents
import dev.kord.common.DiscordBitSet
Intents.Builder(DiscordBitSet(value)).build()