Skip to content

Commit 0d2d1ed

Browse files
committed
Bump JDA, support setting slash NSFW
1 parent 4680136 commit 0d2d1ed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ repositories {
1818
}
1919

2020
dependencies {
21-
def kotlinVersion = '1.7.10'
21+
def kotlinVersion = '1.7.22'
2222
def coroutinesVersion = '1.6.4'
23-
def jdaVersion = '5.0.0-alpha.22'
23+
def jdaVersion = '5.0.0-beta.3'
2424

2525
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
2626
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutinesVersion"

src/main/kotlin/me/devoxin/flight/api/entities/CommandRegistry.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class CommandRegistry : HashMap<String, CommandFunction>() {
1616

1717
for (command in this.values.filter { it.contextType >= SLASH }) {
1818
val data = Commands.slash(command.name, command.properties.description)
19-
data.isGuildOnly = command.properties.guildOnly
19+
.setGuildOnly(command.properties.guildOnly)
20+
.setNSFW(command.properties.nsfw)
2021

2122
if (command.subcommands.isNotEmpty()) {
2223
for (sc in command.subcommands.values) {

0 commit comments

Comments
 (0)