-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for AutoComplete options * Update Core representation * Fix broken imports * Add focused to OptionData * Add focused to OptionValue * Make DiscordApplicationCommand.description nullable * Make guild/global variants of events and interactions * Improve documentation and method naming * Rename Interaction to MessageRespondingInteraction * Update underlying interactions accordingly * Update docs according * Update docs according to requested changes * Rename MessageRespondingInteraction to DataInteraction
- Loading branch information
1 parent
01c9bf9
commit 93c6366
Showing
26 changed files
with
1,134 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
package dev.kord.core.behavior | ||
|
||
import dev.kord.core.behavior.interaction.InteractionBehavior | ||
import dev.kord.common.entity.Snowflake | ||
import dev.kord.core.behavior.interaction.InteractionBehavior | ||
import dev.kord.core.entity.Guild | ||
import dev.kord.core.entity.interaction.ActionInteraction | ||
|
||
/** | ||
* The behavior of a [dev.kord.core.entity.interaction.Interaction][Interaction] that was invoked in a [Guild] | ||
* The behavior of a [ActionInteraction] that was invoked in a [Guild] | ||
*/ | ||
public interface GuildInteractionBehavior : InteractionBehavior { | ||
|
||
public val guildId: Snowflake | ||
|
||
|
||
/** | ||
* The [GuildBehavior] for the guild the command was executed in. | ||
*/ | ||
public val guildBehavior: GuildBehavior get() = GuildBehavior(guildId, kord) | ||
|
||
|
||
public suspend fun getGuildOrNull(): Guild? = supplier.getGuildOrNull(guildId) | ||
|
||
public suspend fun getGuild(): Guild = supplier.getGuild(guildId) | ||
|
||
public companion object; | ||
public companion object | ||
|
||
} |
Oops, something went wrong.