Skip to content

Commit

Permalink
Update KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Sep 18, 2023
1 parent 434bd27 commit e1f8d7a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion common/src/commonMain/kotlin/entity/DiscordApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public data class DiscordApplication(
/**
* A representation of the partial
* [Application Structure](https://discord.com/developers/docs/resources/application#application-object-application-structure)
* sent in [invite create events](https://discord.com/developers/docs/topics/gateway#invite-create).
* sent in [invite create events](https://discord.com/developers/docs/topics/gateway-events#invite-create).
*/
@Serializable
public data class DiscordPartialApplication(
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/commonMain/kotlin/Command.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public data class Resume(

/**
* A representation of the
* [Discord Request Guild Members command](https://discord.com/developers/docs/topics/gateway#request-guild-members).
* [Discord Request Guild Members command](https://discord.com/developers/docs/topics/gateway-events#request-guild-members).
*
* When connecting to a [Gateway] Discord will send members up to [Identify.largeThreshold], any additional
* members can be requested via this command. Sending this command will result in a variable amount of
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/commonMain/kotlin/DefaultGateway.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class DefaultGateway(private val data: DefaultGatewayData) : Gateway {
defaultGatewayLogger.trace { "opening gateway connection to $gatewayUrl" }
socket = data.client.webSocketSession { url(gatewayUrl) }

/**
/*
* https://discord.com/developers/docs/topics/gateway#transport-compression
*
* > Every connection to the gateway should use its own unique zlib context.
Expand Down
10 changes: 5 additions & 5 deletions gateway/src/commonMain/kotlin/Gateway.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import kotlin.time.Duration
/**
* An implementation of the Discord [Gateway](https://discord.com/developers/docs/topics/gateway) and its lifecycle.
*
* Allows consumers to receive [events](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events)
* through [events] and send [commands](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-commands)
* Allows consumers to receive [events](https://discord.com/developers/docs/topics/gateway-events#receive-events)
* through [events] and send [commands](https://discord.com/developers/docs/topics/gateway-events#send-events)
* through [send].
*/
public interface Gateway : CoroutineScope {
/**
* The incoming [events](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events)
* of the Gateway. Users should expect these [Flows](Flow) to be hot and remain open for the entire lifecycle of the
* Gateway.
* The incoming [events](https://discord.com/developers/docs/topics/gateway-events) of the Gateway.
*
* Users should expect these [Flows](Flow) to be hot and remain open for the entire lifecycle of the Gateway.
*/
public val events: SharedFlow<Event>

Expand Down
4 changes: 2 additions & 2 deletions rest/src/commonMain/kotlin/json/JsonErrorCode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ public enum class JsonErrorCode(public val code: Int) {
/** Maximum number of application commands reached. */
MaxApplicationCommands(30032),

/** Max number of thread participants has been reached (1000). */
/** Maximum number of thread participants has been reached (1000). */
MaxThreadParticipants(30033),

/** Max number of daily application command creates has been reached (200). */
/** Maximum number of daily application command creates has been reached (200). */
MaxDailyApplicationCommandCreates(30034),

/** Maximum number of bans for non-guild members have been exceeded. */
Expand Down

0 comments on commit e1f8d7a

Please sign in to comment.