Browse Source

Set all intents (javacord 3.1 migration)

master
kageru 11 months ago
parent
commit
997284fb54
Signed by: kageru GPG Key ID: 8282A2BEA4ADA3D2
  1. 2
      src/main/kotlin/moe/kageru/kagebot/Kagebot.kt

2
src/main/kotlin/moe/kageru/kagebot/Kagebot.kt

@ -35,7 +35,7 @@ object Kagebot {
fun init() {
val secret = File("secret").readText().trim()
val api = DiscordApiBuilder().setToken(secret).login().join()
val api = DiscordApiBuilder().setToken(secret).setAllIntents().login().join()
Globals.api = api
ConfigParser.initialLoad(ConfigParser.DEFAULT_CONFIG_PATH).mapLeft { e ->
println("Config parsing error:\n$e,\n${e.message},\n${e.stackTrace.joinToString("\n")}")

Loading…
Cancel
Save