MessageCommandContext

class MessageCommandContext(val event: MessageContextInteractionEvent, val client: SlashCommandClient) : InteractionContext<MessageContextInteractionEvent> , MessageContextInteraction

Constructors

Link copied to clipboard
constructor(event: MessageContextInteractionEvent, client: SlashCommandClient)

Properties

Link copied to clipboard
open override val client: SlashCommandClient
Link copied to clipboard
open override val event: MessageContextInteractionEvent
Link copied to clipboard
open val interaction: Interaction

Functions

Link copied to clipboard
inline suspend fun <E : GenericEvent> InteractionContext<*>.await(timeout: Duration, crossinline filter: suspend (event: E) -> Boolean): E?
Link copied to clipboard
open override fun deferReply(): ReplyCallbackAction
open fun deferReply(p0: Boolean): ReplyCallbackAction
Link copied to clipboard
open override fun getChannel(): MessageChannelUnion?
Link copied to clipboard
open fun getChannelType(): ChannelType
Link copied to clipboard
Link copied to clipboard
open override fun getCommandIdLong(): Long
Link copied to clipboard
Link copied to clipboard
open override fun getCommandType(): Command.Type
Link copied to clipboard
Link copied to clipboard
open override fun getGuild(): Guild?
Link copied to clipboard
open override fun getGuildChannel(): GuildMessageChannelUnion
Link copied to clipboard
open fun getGuildLocale(): DiscordLocale
Link copied to clipboard
open override fun getHook(): InteractionHook
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open override fun getIdLong(): Long
Link copied to clipboard
open override fun getJDA(): JDA
Link copied to clipboard
open override fun getMember(): Member?
Link copied to clipboard
open fun getMessageChannel(): MessageChannel
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open fun getOption(@Nonnull p0: String): OptionMapping?
open fun <T : Any> getOption(@Nonnull p0: String, @Nonnull p1: Function<in OptionMapping, out T>): T?
open fun <T : Any> getOption(@Nonnull p0: String, @Nullable p1: T?, @Nonnull p2: Function<in OptionMapping, out T>): T
open fun <T : Any> getOption(@Nonnull p0: String, @Nullable p1: Supplier<out T>?, @Nonnull p2: Function<in OptionMapping, out T>): T
Link copied to clipboard
open override fun getOptions(): MutableList<OptionMapping>
Link copied to clipboard
open fun getOptionsByName(@Nonnull p0: String): MutableList<OptionMapping>
Link copied to clipboard
open fun getOptionsByType(@Nonnull p0: OptionType): MutableList<OptionMapping>
Link copied to clipboard
open override fun getSubcommandGroup(): String?
Link copied to clipboard
open override fun getSubcommandName(): String?
Link copied to clipboard
open override fun getTarget(): Message
Link copied to clipboard
open override fun getTargetType(): ContextInteraction.ContextTarget
Link copied to clipboard
Link copied to clipboard
open override fun getToken(): String
Link copied to clipboard
open fun getType(): InteractionType
Link copied to clipboard
open override fun getTypeRaw(): Int
Link copied to clipboard
open override fun getUser(): User
Link copied to clipboard
open override fun getUserLocale(): DiscordLocale
Link copied to clipboard
open override fun isAcknowledged(): Boolean
Link copied to clipboard
open fun isFromGuild(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun isGuildCommand(): Boolean
Link copied to clipboard
open fun reply(@Nonnull p0: String): ReplyCallbackAction
open fun reply(@Nonnull p0: MessageCreateData): ReplyCallbackAction
Link copied to clipboard
open fun replyComponents(@Nonnull p0: MutableCollection<out LayoutComponent>): ReplyCallbackAction
open fun replyComponents(@Nonnull p0: LayoutComponent, @Nonnull vararg p1: LayoutComponent): ReplyCallbackAction
Link copied to clipboard
open fun replyEmbeds(@Nonnull p0: MutableCollection<out MessageEmbed>): ReplyCallbackAction
open fun replyEmbeds(@Nonnull p0: MessageEmbed, @Nonnull vararg p1: MessageEmbed): ReplyCallbackAction
Link copied to clipboard
open fun replyFiles(@Nonnull vararg p0: FileUpload): ReplyCallbackAction
open fun replyFiles(@Nonnull p0: MutableCollection<out FileUpload>): ReplyCallbackAction
Link copied to clipboard
open fun replyFormat(@Nonnull p0: String, @Nonnull vararg p1: Any): ReplyCallbackAction
Link copied to clipboard
open override fun replyModal(@Nonnull p0: Modal): ModalCallbackAction