Package-level declarations

Types

Link copied to clipboard
data class ChatCommandFailedChecksEvent(val command: ChatCommand<*>, val event: MessageCreateEvent, val reason: Key) : CommandFailedChecksEvent<ChatCommand<*>, MessageCreateEvent>

Event emitted when a chat command's checks fail.

Link copied to clipboard
data class ChatCommandFailedParsingEvent(val command: ChatCommand<*>, val event: MessageCreateEvent, val exception: ArgumentParsingException) : CommandFailedParsingEvent<ChatCommand<*>, MessageCreateEvent>

Event emitted when a chat command's argument parsing fails.

Link copied to clipboard
data class ChatCommandFailedWithExceptionEvent(val command: ChatCommand<*>, val event: MessageCreateEvent, val throwable: Throwable) : CommandFailedWithExceptionEvent<ChatCommand<*>, MessageCreateEvent>

Event emitted when a chat command's invocation fails with an exception.

Link copied to clipboard
data class ChatCommandInvocationEvent(val command: ChatCommand<*>, val event: MessageCreateEvent) : CommandInvocationEvent<ChatCommand<*>, MessageCreateEvent>

Event emitted when a chat command is invoked.

Link copied to clipboard
data class ChatCommandSucceededEvent(val command: ChatCommand<*>, val event: MessageCreateEvent) : CommandSucceededEvent<ChatCommand<*>, MessageCreateEvent>

Event emitted when a chat command invocation succeeds.

Link copied to clipboard
sealed interface CommandEvent<C : Command, E : Event> : KordExEvent

Sealed interface representing a basic command event.

Link copied to clipboard
sealed interface CommandFailedChecksEvent<C : Command, E : Event> : CommandFailedEvent<C, E>

Basic event emitted when a command's checks fail, including for required bot permissions.

Link copied to clipboard
sealed interface CommandFailedEvent<C : Command, E : Event> : CommandEvent<C, E>

Basic event emitted when a command's invocation fails, for one reason or another.

Link copied to clipboard
sealed interface CommandFailedParsingEvent<C : Command, E : Event> : CommandFailedEvent<C, E>

Basic event emitted when a command's argument parsing fails.

Link copied to clipboard
sealed interface CommandFailedWithExceptionEvent<C : Command, E : Event> : CommandFailedEvent<C, E>

Basic event emitted when a command's body invocation fails with an exception.

Link copied to clipboard
sealed interface CommandInvocationEvent<C : Command, E : Event> : CommandEvent<C, E>

Basic event emitted when a command is invoked.

Link copied to clipboard
sealed interface CommandSucceededEvent<C : Command, E : Event> : CommandEvent<C, E>

Basic event emitted when a command's invocation succeeds.

Link copied to clipboard
data class EphemeralMessageCommandFailedChecksEvent(val command: EphemeralMessageCommand<*>, val event: MessageCommandInteractionCreateEvent, val reason: Key) : MessageCommandFailedChecksEvent<EphemeralMessageCommand<*>>

Event emitted when an ephemeral message command's checks fail.

data class EphemeralMessageCommandFailedWithExceptionEvent(val command: EphemeralMessageCommand<*>, val event: MessageCommandInteractionCreateEvent, val throwable: Throwable) : MessageCommandFailedWithExceptionEvent<EphemeralMessageCommand<*>>

Event emitted when an ephemeral message command invocation fails with an exception.

Link copied to clipboard
data class EphemeralMessageCommandInvocationEvent(val command: EphemeralMessageCommand<*>, val event: MessageCommandInteractionCreateEvent) : MessageCommandInvocationEvent<EphemeralMessageCommand<*>>

Event emitted when an ephemeral message command is invoked.

Link copied to clipboard
data class EphemeralMessageCommandSucceededEvent(val command: EphemeralMessageCommand<*>, val event: MessageCommandInteractionCreateEvent) : MessageCommandSucceededEvent<EphemeralMessageCommand<*>>

Event emitted when an ephemeral message command invocation succeeds.

Link copied to clipboard
data class EphemeralSlashCommandFailedChecksEvent(val command: EphemeralSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val reason: Key) : SlashCommandFailedChecksEvent<EphemeralSlashCommand<*, *>>

Event emitted when an ephemeral slash command's checks fail.

Link copied to clipboard
data class EphemeralSlashCommandFailedParsingEvent(val command: EphemeralSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val exception: ArgumentParsingException) : SlashCommandFailedParsingEvent<EphemeralSlashCommand<*, *>>

Event emitted when an ephemeral slash command's argument parsing fails'.

data class EphemeralSlashCommandFailedWithExceptionEvent(val command: EphemeralSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val throwable: Throwable) : SlashCommandFailedWithExceptionEvent<EphemeralSlashCommand<*, *>>

Event emitted when an ephemeral slash command invocation fails with an exception.

Link copied to clipboard
data class EphemeralSlashCommandInvocationEvent(val command: EphemeralSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent) : SlashCommandInvocationEvent<EphemeralSlashCommand<*, *>>

Event emitted when an ephemeral slash command is invoked.

Link copied to clipboard
data class EphemeralSlashCommandSucceededEvent(val command: EphemeralSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent) : SlashCommandSucceededEvent<EphemeralSlashCommand<*, *>>

Event emitted when an ephemeral slash command invocation succeeds.

Link copied to clipboard
data class EphemeralUserCommandFailedChecksEvent(val command: EphemeralUserCommand<*>, val event: UserCommandInteractionCreateEvent, val reason: Key) : UserCommandFailedChecksEvent<EphemeralUserCommand<*>>

Event emitted when an ephemeral user command's checks fail.

data class EphemeralUserCommandFailedWithExceptionEvent(val command: EphemeralUserCommand<*>, val event: UserCommandInteractionCreateEvent, val throwable: Throwable) : UserCommandFailedWithExceptionEvent<EphemeralUserCommand<*>>

Event emitted when an ephemeral user command invocation fails with an exception.

Link copied to clipboard
data class EphemeralUserCommandInvocationEvent(val command: EphemeralUserCommand<*>, val event: UserCommandInteractionCreateEvent) : UserCommandInvocationEvent<EphemeralUserCommand<*>>

Event emitted when an ephemeral user command is invoked.

Link copied to clipboard
data class EphemeralUserCommandSucceededEvent(val command: EphemeralUserCommand<*>, val event: UserCommandInteractionCreateEvent) : UserCommandSucceededEvent<EphemeralUserCommand<*>>

Event emitted when an ephemeral user command invocation succeeds.

Link copied to clipboard
interface MessageCommandFailedChecksEvent<C : MessageCommand<*, *>> : MessageCommandFailedEvent<C> , CommandFailedChecksEvent<C, MessageCommandInteractionCreateEvent>

Basic event emitted when a message command's checks fail.

Link copied to clipboard
sealed interface MessageCommandFailedEvent<C : MessageCommand<*, *>> : CommandFailedEvent<C, MessageCommandInteractionCreateEvent>

Basic event emitted when a message command invocation fails.

Link copied to clipboard

Basic event emitted when a message command invocation fails with an exception.

Link copied to clipboard
interface MessageCommandInvocationEvent<C : MessageCommand<*, *>> : CommandInvocationEvent<C, MessageCommandInteractionCreateEvent>

Basic event emitted when a message command is invoked.

Link copied to clipboard
interface MessageCommandSucceededEvent<C : MessageCommand<*, *>> : CommandSucceededEvent<C, MessageCommandInteractionCreateEvent>

Basic event emitted when a message command invocation succeeds.

Link copied to clipboard
data class PublicMessageCommandFailedChecksEvent(val command: PublicMessageCommand<*>, val event: MessageCommandInteractionCreateEvent, val reason: Key) : MessageCommandFailedChecksEvent<PublicMessageCommand<*>>

Event emitted when a public message command's checks fail.

data class PublicMessageCommandFailedWithExceptionEvent(val command: PublicMessageCommand<*>, val event: MessageCommandInteractionCreateEvent, val throwable: Throwable) : MessageCommandFailedWithExceptionEvent<PublicMessageCommand<*>>

Event emitted when a public message command invocation fails with an exception.

Link copied to clipboard
data class PublicMessageCommandInvocationEvent(val command: PublicMessageCommand<*>, val event: MessageCommandInteractionCreateEvent) : MessageCommandInvocationEvent<PublicMessageCommand<*>>

Event emitted when a public message command is invoked.

Link copied to clipboard
data class PublicMessageCommandSucceededEvent(val command: PublicMessageCommand<*>, val event: MessageCommandInteractionCreateEvent) : MessageCommandSucceededEvent<PublicMessageCommand<*>>

Event emitted when a public message command invocation succeeds.

Link copied to clipboard
data class PublicSlashCommandFailedChecksEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val reason: Key) : SlashCommandFailedChecksEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command's checks fail.

Link copied to clipboard
data class PublicSlashCommandFailedParsingEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val exception: ArgumentParsingException) : SlashCommandFailedParsingEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command's argument parsing fails'.

data class PublicSlashCommandFailedWithExceptionEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent, val throwable: Throwable) : SlashCommandFailedWithExceptionEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command invocation fails with an exception.

Link copied to clipboard
data class PublicSlashCommandInvocationEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent) : SlashCommandInvocationEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command is invoked.

Link copied to clipboard
data class PublicSlashCommandSucceededEvent(val command: PublicSlashCommand<*, *>, val event: ChatInputCommandInteractionCreateEvent) : SlashCommandSucceededEvent<PublicSlashCommand<*, *>>

Event emitted when a public slash command invocation succeeds.

Link copied to clipboard
data class PublicUserCommandFailedChecksEvent(val command: PublicUserCommand<*>, val event: UserCommandInteractionCreateEvent, val reason: Key) : UserCommandFailedChecksEvent<PublicUserCommand<*>>

Event emitted when a public user command's checks fail.

data class PublicUserCommandFailedWithExceptionEvent(val command: PublicUserCommand<*>, val event: UserCommandInteractionCreateEvent, val throwable: Throwable) : UserCommandFailedWithExceptionEvent<PublicUserCommand<*>>

Event emitted when a public user command invocation fails with an exception.

Link copied to clipboard
data class PublicUserCommandInvocationEvent(val command: PublicUserCommand<*>, val event: UserCommandInteractionCreateEvent) : UserCommandInvocationEvent<PublicUserCommand<*>>

Event emitted when a public user command is invoked.

Link copied to clipboard
data class PublicUserCommandSucceededEvent(val command: PublicUserCommand<*>, val event: UserCommandInteractionCreateEvent) : UserCommandSucceededEvent<PublicUserCommand<*>>

Event emitted when a public user command invocation succeeds.

Link copied to clipboard
interface SlashCommandFailedChecksEvent<C : SlashCommand<*, *, *>> : SlashCommandFailedEvent<C> , CommandFailedChecksEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command's checks fail.

Link copied to clipboard
sealed interface SlashCommandFailedEvent<C : SlashCommand<*, *, *>> : CommandFailedEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command invocation fails.

Link copied to clipboard
interface SlashCommandFailedParsingEvent<C : SlashCommand<*, *, *>> : SlashCommandFailedEvent<C> , CommandFailedParsingEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command's argument parsing fails'.

Link copied to clipboard
interface SlashCommandFailedWithExceptionEvent<C : SlashCommand<*, *, *>> : SlashCommandFailedEvent<C> , CommandFailedWithExceptionEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command invocation fails with an exception.

Link copied to clipboard
interface SlashCommandInvocationEvent<C : SlashCommand<*, *, *>> : CommandInvocationEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command is invoked.

Link copied to clipboard
interface SlashCommandSucceededEvent<C : SlashCommand<*, *, *>> : CommandSucceededEvent<C, ChatInputCommandInteractionCreateEvent>

Basic event emitted when a slash command invocation succeeds.

Link copied to clipboard
interface UserCommandFailedChecksEvent<C : UserCommand<*, *>> : UserCommandFailedEvent<C> , CommandFailedChecksEvent<C, UserCommandInteractionCreateEvent>

Basic event emitted when a user command's checks fail.

Link copied to clipboard
sealed interface UserCommandFailedEvent<C : UserCommand<*, *>> : CommandFailedEvent<C, UserCommandInteractionCreateEvent>

Basic event emitted when a user command invocation fails.

Link copied to clipboard

Basic event emitted when a user command invocation fails with an exception.

Link copied to clipboard
interface UserCommandInvocationEvent<C : UserCommand<*, *>> : CommandInvocationEvent<C, UserCommandInteractionCreateEvent>

Basic event emitted when a user command is invoked.

Link copied to clipboard
interface UserCommandSucceededEvent<C : UserCommand<*, *>> : CommandSucceededEvent<C, UserCommandInteractionCreateEvent>

Basic event emitted when a user command invocation succeeds.