Unknown

A fallback Permission for permissions that haven't been added to Kord yet.

You can use this to check if an instance of Permissions does contain an unknown permission:

val permissions: Permissions = ...
// 1 << 63 as an example for some new permission
val hasNewPermission = Permission.Unknown(1L shl 63) in permissions

See here for a listing of the bitwise permission flags.

Constructors

Link copied to clipboard
constructor(code: DiscordBitSet)
constructor(vararg values: Long)

Properties

Link copied to clipboard