Properties

Link copied to clipboard
Link copied to clipboard
abstract val instance: T

Functions

Link copied to clipboard
@CheckReturnValue
open fun addPermissions(vararg permissions: Permission): T
@CheckReturnValue
abstract fun addPermissions(permissions: Collection<Permission>): T

Adds permissions to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addRoleIds(vararg roleIds: Long): T
@CheckReturnValue
abstract fun addRoleIds(roleIds: Collection<Long>): T

Adds role IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addRoles(vararg roles: Role): T
@CheckReturnValue
abstract fun addRoles(roles: Collection<Role>): T

Adds role IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addUserIds(vararg userIds: Long): T
@CheckReturnValue
abstract fun addUserIds(userIds: Collection<Long>): T

Adds user IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addUsers(vararg users: UserSnowflake): T
@CheckReturnValue
abstract fun addUsers(users: Collection<UserSnowflake>): T

Adds user IDs to the constraints

Link copied to clipboard
@CheckReturnValue
abstract fun constraints(block: ReceiverConsumer<InteractionConstraints>): T

Allows manipulating the InteractionConstraints instance

@CheckReturnValue
open fun constraints(constraints: InteractionConstraints): T

Replaces the current interaction constraints with the given ones.