SuspendingCommand

abstract class SuspendingCommand

Constructors

SuspendingCommand
Link copied to clipboard
fun SuspendingCommand(name: String)
SuspendingCommand
Link copied to clipboard
fun SuspendingCommand(name: String, permission: String, vararg aliases: String)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

execute
Link copied to clipboard
abstract suspend fun execute(sender: <ERROR CLASS>, args: Array<out String>)
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

hasPermission
Link copied to clipboard
fun hasPermission(sender: <ERROR CLASS>): Boolean
toString
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

aliases
Link copied to clipboard
val aliases: Array<String>
name
Link copied to clipboard
val name: String
permission
Link copied to clipboard
val permission: String?
permissionMessage
Link copied to clipboard
var permissionMessage: String?