Skip to content

Commit

Permalink
Enable guild endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 25, 2024
1 parent 8a3c3e7 commit 2a97de9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/src/main/kotlin/space/votebot/core/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.kotlindiscord.kord.extensions.extensions.Extension
import com.kotlindiscord.kord.extensions.extensions.event
import dev.kord.common.Locale
import dev.kord.core.event.gateway.ReadyEvent
import dev.kord.gateway.Intent
import dev.schlaubi.mikbot.plugin.api.Plugin
import dev.schlaubi.mikbot.plugin.api.PluginContext
import dev.schlaubi.mikbot.plugin.api.PluginMain
Expand Down Expand Up @@ -34,7 +35,10 @@ class VoteBotPlugin(wrapper: PluginContext) : Plugin(wrapper) {
}
kord {
// Disable non essential intents to keep down processing and traffic
intents(false, false) {}
intents(false, false) {
// Required for permissions
+Intent.Guilds
}
}
i18n {
applicationCommandLocales.add(Locale.FRENCH)
Expand Down

0 comments on commit 2a97de9

Please sign in to comment.