Permissions

constructor(code: DiscordBitSet)(source)

Deprecated (with error)

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

Replace with

import dev.kord.common.entity.Permissions
Permissions.Builder(code).build()