Skip to content

Commit

Permalink
fix server setup
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoot committed Mar 30, 2024
1 parent 9dd7bcc commit dbdb57d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies {
implementation("io.insert-koin:koin-core:3.2.2")

// Discord4J
implementation("com.discord4j:discord4j-core:3.2.3")
implementation("com.discord4j:discord4j-core:3.2.6")

// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.9.0")
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/de/bigboot/ggtools/fang/di/discordModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package de.bigboot.ggtools.fang.di

import de.bigboot.ggtools.fang.Config
import discord4j.core.DiscordClient
import discord4j.core.event.EventDispatcher
import discord4j.gateway.intent.Intent
import discord4j.gateway.intent.IntentSet
import org.koin.dsl.module
Expand All @@ -11,6 +12,7 @@ val discordModule = module {
DiscordClient
.create(Config.bot.token)
.gateway()
.setEventDispatcher(EventDispatcher.replaying())
.setEnabledIntents(IntentSet.nonPrivileged().or(IntentSet.of(Intent.GUILD_MEMBERS)))
.login()
.block()
Expand Down

0 comments on commit dbdb57d

Please sign in to comment.