InteractionService
Functions
Link copied to clipboard
suspend fun createAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, autoComplete: DiscordAutoComplete)
Link copied to clipboard
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
suspend fun createGlobalApplicationCommand(applicationId: Snowflake, request: ApplicationCommandCreateRequest): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createGlobalApplicationCommands(applicationId: Snowflake, builder: GlobalMultiApplicationCommandBuilder.() -> Unit): List<DiscordApplicationCommand>
suspend fun createGlobalApplicationCommands(applicationId: Snowflake, request: List<ApplicationCommandCreateRequest>): List<DiscordApplicationCommand>
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 createGlobalMessageCommandApplicationCommand(applicationId: Snowflake, name: String, builder: GlobalMessageCommandCreateBuilder.() -> Unit = {}): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createGlobalUserCommandApplicationCommand(applicationId: Snowflake, name: String, builder: GlobalUserCommandCreateBuilder.() -> Unit = {}): DiscordApplicationCommand
Link copied to clipboard
suspend fun createGuildApplicationCommand(applicationId: Snowflake, guildId: Snowflake, request: ApplicationCommandCreateRequest): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun createGuildApplicationCommands(applicationId: Snowflake, guildId: Snowflake, builder: GuildMultiApplicationCommandBuilder.() -> Unit): List<DiscordApplicationCommand>
suspend fun createGuildApplicationCommands(applicationId: Snowflake, guildId: Snowflake, request: List<ApplicationCommandCreateRequest>): List<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 createGuildMessageCommandApplicationCommand(applicationId: Snowflake, guildId: Snowflake, name: String, builder: MessageCommandCreateBuilder.() -> 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)
Link copied to clipboard
inline suspend fun createNumberAutoCompleteInteractionResponse(interactionId: Snowflake, interactionToken: String, builderFunction: NumberOptionBuilder.() -> Unit)
Link copied to clipboard
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
Link copied to clipboard
suspend fun deleteFollowupMessage(applicationId: Snowflake, interactionToken: String, messageId: Snowflake)
Link copied to clipboard
Link copied to clipboard
suspend fun deleteGuildApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake)
Link copied to clipboard
Link copied to clipboard
suspend fun getApplicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): DiscordGuildApplicationCommandPermissions
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 getGuildApplicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake): List<DiscordGuildApplicationCommandPermissions>
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
suspend fun modifyGlobalApplicationCommand(applicationId: Snowflake, commandId: Snowflake, request: ApplicationCommandModifyRequest): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun modifyGlobalChatInputApplicationCommand(applicationId: Snowflake, commandId: Snowflake, builder: GlobalChatInputModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun modifyGlobalMessageApplicationCommand(applicationId: Snowflake, commandId: Snowflake, builder: GlobalMessageCommandModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
inline suspend fun modifyGlobalUserApplicationCommand(applicationId: Snowflake, commandId: Snowflake, builder: GlobalUserCommandModifyBuilder.() -> Unit): DiscordApplicationCommand
Link copied to clipboard
suspend fun modifyGuildApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake, request: ApplicationCommandModifyRequest): DiscordApplicationCommand
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