common / me.schlaubi.regnumutils.command.spi.permission / Permissions

Permissions

interface Permissions

Properties

discordPermission

abstract val discordPermission: Permission?

Only people with that Permission can execute the command.

node

abstract val node: String

Some permission node.

ownerExclusive

abstract val ownerExclusive: Boolean

Only the bot owner can execute the command.

public

abstract val public: Boolean

Everyone can execute the command.

serverOwnerExclusive

abstract val serverOwnerExclusive: Boolean

Only someone with Permission.MANAGE_SERVER or Permission.ADMINISTRATOR can execute that command.

Companion Object Functions

botOwner

fun botOwner(): Permissions

Only the bot owner can execute the command.

discord

fun discord(permission: Permission): Permissions

Only people with that permission can execute the command.

public

fun public(): Permissions

Everyone can execute the command.

serverOwner

fun serverOwner(): Permissions

Only someone with Permission.MANAGE_SERVER or Permission.ADMINISTRATOR can execute that command.

Inheritors

PermissionsImpl

open class PermissionsImpl : Permissions