SlashOptionGetterImpl

class SlashOptionGetterImpl(applicationCommandOption: ApplicationCommandOption, optionObjects: Map<Long, GenericEntity>) : SlashOptionGetter(source)

Constructors

Link copied to clipboard
constructor(applicationCommandOption: ApplicationCommandOption, optionObjects: Map<Long, GenericEntity>)

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
open override val asAttachment: Attachment

The option as an attachment.

Link copied to clipboard
open override val asBoolean: Boolean

The option as a boolean.

Link copied to clipboard
open override val asChannel: Channel

The option as a channel.

Link copied to clipboard
open override val asDouble: Double

The option as a double.

Link copied to clipboard
open override val asLong: Long

The option as a long.

Link copied to clipboard
open override val asMember: Member

The option as a member.

Link copied to clipboard
open override val asRole: Role

The option as a role.

Link copied to clipboard
open override val asString: String

The option as a string.

Link copied to clipboard
open override val asSubCommand: SubCommand

The option as a subcommand.

Link copied to clipboard
open override val asUser: User

The option as a user.

Link copied to clipboard
open override var name: String
Link copied to clipboard
open override val type: SlashOptionType

The type of this option.