kord
kord copied to clipboard
Idiomatic Kotlin Wrapper for The Discord API
Currently we connect all shards at once and rate limit the identify command, which causes session resets and timeouts (see #624) A better solution would be to implement rate limiting...
relevant doc commits: - https://github.com/discord/discord-api-docs/commit/30b37e576d3457f5401c50dea96e8bc5bfdd675b - https://github.com/discord/discord-api-docs/commit/58d6ec4ba99018c2fc104428c0309081b14d9fb3
In the kotlin upgrade to 1.7, TimeMark was changed from a class to an interface. Here timemark is used as an implementation: https://github.com/kordlib/kord/blob/0.8.x/common/src/main/kotlin/ratelimit/TimeSourceIntervalRateLimiter.kt#L41 My best guess is the compiled versions...
Work still in progress. The DSL for creating and editing `AutoModerationRule`s looks like this: ```kotlin // or other type instead of `Keyword` // or rule.edit { ... } val rule...
# Problem Currently, the `dev.kord.core.event.Event` interface extends `CoroutineScope`, but this is problematic. The reason is that events don't have a well-defined lifecycle, as we never call `CoroutineScope.cancel()` for them (and...
``` Caused by: kotlinx.serialization.MissingFieldException: Fields [name, icon, owner_id, region, afk_channel_id, afk_timeout, verification_level, default_message_notifications, explicit_content_filter, roles, emojis, features, mfa_level, application_id, system_channel_id, system_channel_flags, rules_channel_id, vanity_url_code, description, banner, premium_tier, preferred_locale, public_updates_channel_id, nsfw_level, premium_progress_bar_enabled]...
When you receive a interaction, the member object has a `permissions` field, which allows you to check what permissions the member has, however this is "thrown away" when creating the...
Work still in progress, this feature also isn't released yet relevant doc PRs: - [ ] https://github.com/discord/discord-api-docs/pull/4761 - [ ] https://github.com/discord/discord-api-docs/pull/4850 - [ ] https://github.com/discord/discord-api-docs/pull/4867 (new `flags` fields in `docs/resources/Channel.md`)...
When I retrieve a GuildScheduledEvent and access it's users or members property. The list returned contains all users in the guild instead of all users that have signed up for...