Skip to content

Commit

Permalink
Update JDA to 5.0.0-beta.20
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Jan 21, 2024
1 parent e8b0a70 commit 78dbf82
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

[1]: https://github.com/dv8fromtheworld/jda
[1]: https://github.com/discord-jda/jda
[2]: https://github.com/kotlin/kotlinx.coroutines
[3]: https://github.com/MinnDevelopment/jda-reactor

Expand All @@ -11,7 +11,7 @@

[![Kotlin](https://img.shields.io/badge/kotlin-1.9.22-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![kotlinx-coroutines](https://img.shields.io/badge/kotlinx.coroutines-1.7.3-blue.svg?logo=kotlin)][2]
[![JDA](https://img.shields.io/badge/JDA-5.0.0--beta.19-blue.svg)][1]
[![JDA](https://img.shields.io/badge/JDA-5.0.0--beta.20-blue.svg)][1]
[![docs](https://img.shields.io/github/deployments/minndevelopment/jda-ktx/github-pages?label=docs)][8]
[ ![](https://img.shields.io/maven-central/v/club.minnced/jda-ktx) ](https://search.maven.org/artifact/club.minnced/jda-ktx)

Expand All @@ -24,7 +24,7 @@ Great in combination with [kotlinx-coroutines][2] and [jda-reactor][3].

- Kotlin **1.9.22**
- kotlinx.coroutines **1.7.3**
- JDA **5.0.0-beta.19**
- JDA **5.0.0-beta.20**

## Examples

Expand Down
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URL
import java.net.URI

buildscript {
dependencies {
Expand All @@ -23,8 +23,8 @@ plugins {
}

group = "club.minnced"
version = "0.11.0-beta.19"
val jdaVersion = "5.0.0-beta.19"
version = "0.11.0-beta.20"
val jdaVersion = "5.0.0-beta.20"



Expand Down Expand Up @@ -152,13 +152,13 @@ tasks.getByName("dokkaHtml", DokkaTask::class) {
jdkVersion.set(8)
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/MinnDevelopment/jda-ktx/tree/master/src/main/kotlin"))
remoteUrl.set(URI("https://github.com/MinnDevelopment/jda-ktx/tree/master/src/main/kotlin").toURL())
remoteLineSuffix.set("#L")
}

externalDocumentationLink(
URL("https://ci.dv8tion.net/job/JDA5/javadoc/"),
URL("https://ci.dv8tion.net/job/JDA5/javadoc/element-list")
URI("https://ci.dv8tion.net/job/JDA5/javadoc/").toURL(),
URI("https://ci.dv8tion.net/job/JDA5/javadoc/element-list").toURL()
)

pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
Expand Down
4 changes: 2 additions & 2 deletions buildscript-gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.12.7=classpath
com.fasterxml.jackson.module:jackson-module-kotlin:2.12.7=classpath
com.fasterxml.jackson:jackson-bom:2.12.7=classpath
com.fasterxml.woodstox:woodstox-core:6.2.4=classpath
io.github.gradle-nexus.publish-plugin:io.github.gradle-nexus.publish-plugin.gradle.plugin:1.1.0=classpath
io.github.gradle-nexus:publish-plugin:1.1.0=classpath
io.github.gradle-nexus.publish-plugin:io.github.gradle-nexus.publish-plugin.gradle.plugin:1.3.0=classpath
io.github.gradle-nexus:publish-plugin:1.3.0=classpath
io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4=classpath
io.gitlab.arturbosch.detekt:io.gitlab.arturbosch.detekt.gradle.plugin:1.23.4=classpath
jakarta.activation:jakarta.activation-api:1.2.1=classpath
Expand Down
2 changes: 1 addition & 1 deletion gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ com.neovisionaries:nv-websocket-client:2.14=compileClasspath,runtimeClasspath
com.squareup.okhttp3:okhttp:4.12.0=compileClasspath,runtimeClasspath
com.squareup.okio:okio-jvm:3.6.0=compileClasspath,runtimeClasspath
com.squareup.okio:okio:3.6.0=compileClasspath,runtimeClasspath
net.dv8tion:JDA:5.0.0-beta.19=compileClasspath,runtimeClasspath
net.dv8tion:JDA:5.0.0-beta.20=compileClasspath,runtimeClasspath
net.java.dev.jna:jna:4.4.0=runtimeClasspath
net.sf.trove4j:trove4j:3.0.3=runtimeClasspath
org.apache.commons:commons-collections4:4.4=compileClasspath,runtimeClasspath
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/dev/minn/jda/ktx/generics/idiomatic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import net.dv8tion.jda.api.entities.channel.attribute.IGuildChannelContainer
/**
* Same as [IGuildChannelContainer.getChannelById] but with a generic type parameter instead.
*/
inline fun <reified T : Channel> IGuildChannelContainer.getChannel(id: Long) = getChannelById(T::class.java, id)
inline fun <reified T : Channel> IGuildChannelContainer<in T>.getChannel(id: Long) = getChannelById(T::class.java, id)

/**
* Same as [IGuildChannelContainer.getChannelById] but with a generic type parameter instead.
*/
inline fun <reified T : Channel> IGuildChannelContainer.getChannel(id: String) = getChannelById(T::class.java, id)
inline fun <reified T : Channel> IGuildChannelContainer<in T>.getChannel(id: String) = getChannelById(T::class.java, id)

/**
* Same as [IGuildChannelContainer.getChannelById] but with a generic type parameter instead.
*/
inline fun <reified T : Channel> IGuildChannelContainer.getChannel(id: ULong) = getChannel<T>(id.toLong())
inline fun <reified T : Channel> IGuildChannelContainer<in T>.getChannel(id: ULong) = getChannel<T>(id.toLong())

0 comments on commit 78dbf82

Please sign in to comment.