SlashOptionGetter

Functions

Link copied to clipboard
open fun format(format: String): String

Formats the name of the entity

Link copied to clipboard
open override fun formatTo(formatter: Formatter?, flags: Int, width: Int, precision: Int)

Formats the object using the provided {@link Formatter formatter}.

Properties

Link copied to clipboard
abstract val asAttachment: Attachment

The option as an attachment.

Link copied to clipboard
abstract val asBoolean: Boolean

The option as a boolean.

Link copied to clipboard
abstract val asChannel: Channel

The option as a channel.

Link copied to clipboard
abstract val asDouble: Double

The option as a double.

Link copied to clipboard
abstract val asLong: Long

The option as a long.

Link copied to clipboard
abstract val asMember: Member

The option as a member.

Link copied to clipboard
abstract val asRole: Role

The option as a role.

Link copied to clipboard
abstract val asString: String

The option as a string.

Link copied to clipboard
abstract val asSubCommand: SubCommand

The option as a subcommand.

Link copied to clipboard
abstract val asUser: User

The option as a user.

Link copied to clipboard
abstract var name: String
Link copied to clipboard
abstract val type: SlashOptionType

The type of this option.