Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

The behavior of an Application Command that can be used in DMs and Guilds.

Link copied to clipboard

The behavior of a Discord Guild.

Link copied to clipboard
Link copied to clipboard

Behavior of a ADD LINK.

Link copied to clipboard

The behavior of a Discord Member.

Link copied to clipboard
Link copied to clipboard

The behavior of a Discord Role associated to a guild.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The behavior of a Discord User

Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun MemberBehavior.ban(builder: BanCreateBuilder.() -> Unit = {})

Requests to ban this member.

inline suspend fun GuildBehavior.ban(userId: Snowflake, builder: BanCreateBuilder.() -> Unit)

Requests to ban the given userId in this guild.

Link copied to clipboard
inline suspend fun GuildBehavior.createCategory(name: String, builder: CategoryCreateBuilder.() -> Unit = {}): Category

Requests to create a new category.

Link copied to clipboard
inline suspend fun GuildBehavior.createChatInputCommand(name: String, description: String, builder: ChatInputCreateBuilder.() -> Unit = {}): GuildChatInputCommand
Link copied to clipboard
inline suspend fun GuildBehavior.createEmoji(name: String, image: Image, builder: EmojiCreateBuilder.() -> Unit = {}): GuildEmoji
Link copied to clipboard
inline suspend fun GuildBehavior.createForumChannel(name: String, builder: ForumChannelCreateBuilder.() -> Unit = {}): ForumChannel
Link copied to clipboard
Link copied to clipboard

Requests to create a new KeywordAutoModerationRule in this guild and returns it.

Link copied to clipboard

Requests to create a new KeywordPresetAutoModerationRule in this guild and returns it.

Link copied to clipboard
inline suspend fun GuildBehavior.createMediaChannel(name: String, builder: MediaChannelCreateBuilder.() -> Unit = {}): MediaChannel
Link copied to clipboard

Requests to create a new MentionSpamAutoModerationRule in this guild and returns it.

Link copied to clipboard
Link copied to clipboard
inline suspend fun GuildBehavior.createNewsChannel(name: String, builder: NewsChannelCreateBuilder.() -> Unit = {}): NewsChannel

Requests to create a new news channel.

Link copied to clipboard
inline suspend fun GuildBehavior.createRole(builder: RoleCreateBuilder.() -> Unit = {}): Role

Requests to add a new role to this guild.

Link copied to clipboard
Link copied to clipboard

Requests to create a new SpamAutoModerationRule in this guild and returns it.

Link copied to clipboard
inline suspend fun GuildBehavior.createStageChannel(name: String, builder: StageChannelCreateBuilder.() -> Unit = {}): StageChannel

Requests to create a new stage channel.

Link copied to clipboard
inline suspend fun GuildBehavior.createTextChannel(name: String, builder: TextChannelCreateBuilder.() -> Unit = {}): TextChannel

Requests to create a new text channel.

Link copied to clipboard
Link copied to clipboard
inline suspend fun GuildBehavior.createVoiceChannel(name: String, builder: VoiceChannelCreateBuilder.() -> Unit = {}): VoiceChannel

Requests to create a new voice channel.

Link copied to clipboard
inline suspend fun GuildBehavior.edit(builder: GuildModifyBuilder.() -> Unit): Guild

Requests to edit this guild.

inline suspend fun GuildEmojiBehavior.edit(builder: EmojiModifyBuilder.() -> Unit): GuildEmoji

Requests to edit this emoji.

Requests to modify this event according to the specified builder.

inline suspend fun MemberBehavior.edit(builder: MemberModifyBuilder.() -> Unit): Member

Requests to edit this member.

inline suspend fun MessageBehavior.edit(builder: UserMessageModifyBuilder.() -> Unit): Message

Requests to edit this message.

inline suspend fun RoleBehavior.edit(builder: RoleModifyBuilder.() -> Unit): Role

Requests to edit this role.

inline suspend fun StickerBehavior.edit(builder: StickerModifyBuilder.() -> Unit): Sticker

inline suspend fun WebhookBehavior.edit(builder: WebhookModifyBuilder.() -> Unit): Webhook

Requests to edit the webhook, this user must be the creator.

inline suspend fun WebhookBehavior.edit(token: String, builder: WebhookModifyBuilder.() -> Unit): Webhook

Requests to edit the webhook.

inline suspend fun MessageBehavior.edit(webhookId: Snowflake, token: String, threadId: Snowflake? = null, builder: WebhookMessageModifyBuilder.() -> Unit): Message

Requests to edit this message if it was previously sent from a Webhook with the given webhookId using the token for authentication.

Link copied to clipboard

Requests to edit the GuildOnboarding object of the guild and returns the edited onboarding object.

Link copied to clipboard
Link copied to clipboard
inline suspend fun WebhookBehavior.execute(token: String, threadId: Snowflake? = null, builder: WebhookMessageCreateBuilder.() -> Unit): Message

Requests to execute this webhook.

Link copied to clipboard
inline suspend fun WebhookBehavior.executeIgnored(token: String, threadId: Snowflake? = null, builder: WebhookMessageCreateBuilder.() -> Unit)

Requests to execute this webhook.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The Audit log entries from this guild, configured by the builder.

Link copied to clipboard
inline suspend fun <T : GuildChannel> GuildBehavior.getChannelOf(channelId: Snowflake): T

Requests to get the GuildChannel represented by the channelId as type T.

Link copied to clipboard
inline suspend fun <T : GuildChannel> GuildBehavior.getChannelOfOrNull(channelId: Snowflake): T?

Requests to get the GuildChannel represented by the channelId as type T, returns null if the GuildChannel isn't present.

Link copied to clipboard
fun GuildBehavior(id: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): GuildBehavior
Link copied to clipboard
fun MemberBehavior(guildId: Snowflake, id: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): MemberBehavior
Link copied to clipboard
fun MessageBehavior(channelId: Snowflake, messageId: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): MessageBehavior
Link copied to clipboard
inline suspend fun MessageBehavior.reply(builder: UserMessageCreateBuilder.() -> Unit): Message

Request to reply to this message, setting messageReference to this message's id.

Link copied to clipboard

Executes a RequestGuildMembers command configured by the builder for guild on this gateway, returning a flow of MembersChunkEvent responses.

Link copied to clipboard
fun RoleBehavior(guildId: Snowflake, id: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): RoleBehavior
Link copied to clipboard
Link copied to clipboard

Requests to swap positions of channels in this guild.

Link copied to clipboard

Requests to swap positions of roles in this guild.

Link copied to clipboard
Link copied to clipboard
fun ThreadMemberBehavior(id: Snowflake, threadId: Snowflake, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): ThreadMemberBehavior
Link copied to clipboard
fun UserBehavior(id: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): UserBehavior