InteractionService

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Functions

Link copied to clipboard
suspend fun createAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, autoComplete: DiscordAutoComplete)
inline suspend fun <Builder : BaseChoiceBuilder<*, *>> createBuilderAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, builder: Builder, builderFunction: Builder.() -> Unit)
Link copied to clipboard
suspend fun createFollowupMessage(applicationId: Snowflake, interactionToken: String, multipart: MultipartFollowupMessageCreateRequest): DiscordMessage
inline suspend fun createFollowupMessage(applicationId: Snowflake, interactionToken: String, ephemeral: Boolean = false, builder: FollowupMessageCreateBuilder.() -> Unit): DiscordMessage
Link copied to clipboard
inline suspend fun createGlobalChatInputApplicationCommand(applicationId: Snowflake, name: String, description: String, builder: GlobalChatInputCreateBuilder.() -> Unit = {}): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createGuildChatInputApplicationCommand(applicationId: Snowflake, guildId: Snowflake, name: String, description: String, builder: ChatInputCreateBuilder.() -> Unit = {}): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createGuildUserCommandApplicationCommand(applicationId: Snowflake, guildId: Snowflake, name: String, builder: UserCommandCreateBuilder.() -> Unit = {}): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createIntAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, builderFunction: IntegerOptionBuilder.() -> Unit)
Link copied to clipboard
suspend fun createInteractionResponse(interactionId: Snowflake, interactionToken: String, request: InteractionResponseCreateRequest)
suspend fun createInteractionResponse(interactionId: Snowflake, interactionToken: String, request: MultipartInteractionResponseCreateRequest)
inline suspend fun createInteractionResponse(interactionId: Snowflake, interactionToken: String, ephemeral: Boolean = false, builder: InteractionResponseCreateBuilder.() -> Unit)
Link copied to clipboard
suspend fun createModalInteractionResponse(interactionId: Snowflake, interactionToken: String, modal: DiscordModal)
inline suspend fun createModalInteractionResponse(interactionId: Snowflake, interactionToken: String, title: String, customId: String, builder: ModalBuilder.() -> Unit)
inline suspend fun createNumberAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, builderFunction: NumberOptionBuilder.() -> Unit)
inline suspend fun createStringAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, builderFunction: StringChoiceBuilder.() -> Unit)
Link copied to clipboard
suspend fun deferMessage(interactionId: Snowflake, interactionToken: String, ephemeral: Boolean = false)
Link copied to clipboard
suspend fun deferMessageUpdate(interactionId: Snowflake, interactionToken: String)
Link copied to clipboard
suspend fun deleteFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake)
Link copied to clipboard
suspend fun deleteGlobalApplicationCommand(applicationId: Snowflake, commandId: Snowflake)
Link copied to clipboard
suspend fun deleteGuildApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake)
Link copied to clipboard
suspend fun deleteOriginalInteractionResponse(applicationId: Snowflake, interactionToken: String)
Link copied to clipboard
suspend fun getFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake): DiscordMessage
Link copied to clipboard
suspend fun getGlobalApplicationCommands(applicationId: Snowflake, withLocalizations: Boolean? = null): List<DiscordApplicationCommand>
Link copied to clipboard
suspend fun getGlobalCommand(applicationId: Snowflake, commandId: Snowflake): DiscordApplicationCommand
Link copied to clipboard
suspend fun getGuildApplicationCommands(applicationId: Snowflake, guildId: Snowflake, withLocalizations: Boolean? = null): List<DiscordApplicationCommand>
Link copied to clipboard
suspend fun getGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): DiscordApplicationCommand
Link copied to clipboard
suspend fun getInteractionResponse(applicationId: Snowflake, interactionToken: String): DiscordMessage
Link copied to clipboard
suspend fun modifyFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake, request: FollowupMessageModifyRequest): DiscordMessage
suspend fun modifyFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake, request: MultipartFollowupMessageModifyRequest): DiscordMessage
inline suspend fun modifyFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake, builder: FollowupMessageModifyBuilder.() -> Unit = {}): DiscordMessage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun modifyGuildChatInputApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, builder: ChatInputModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun modifyGuildMessageApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, builder: MessageCommandModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun modifyGuildUserApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, builder: UserCommandModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
suspend fun modifyInteractionResponse(applicationId: Snowflake, interactionToken: String, request: InteractionResponseModifyRequest): DiscordMessage
suspend fun modifyInteractionResponse(applicationId: Snowflake, interactionToken: String, multipartRequest: MultipartInteractionResponseModifyRequest): DiscordMessage
inline suspend fun modifyInteractionResponse(applicationId: Snowflake, interactionToken: String, builder: InteractionResponseModifyBuilder.() -> Unit): DiscordMessage