From e9f6bec6901d44ddefdfe3c16517bfb8f74c4a2c Mon Sep 17 00:00:00 2001 From: Russell Banks <74878137+russellbanks@users.noreply.github.com> Date: Tue, 16 May 2023 19:14:54 +0100 Subject: [PATCH] Set default guild based on String over Snowflake --- .github/workflows/Release.yml | 1 - src/main/kotlin/Main.kt | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 083e901..60c22d5 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -26,7 +26,6 @@ jobs: run: ./gradlew build - name: Release JAR - if: matrix.os == 'ubuntu-latest' uses: softprops/action-gh-release@v1 with: generate_release_notes: true diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index 028fc2a..e08e44f 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -21,7 +21,6 @@ along with this program. If not, see . import com.kotlindiscord.kord.extensions.ExtensibleBot import com.kotlindiscord.kord.extensions.checks.isNotBot import data.Database -import dev.kord.common.entity.Snowflake import dev.kord.gateway.Intent import dev.kord.gateway.Intents import dev.kord.gateway.PrivilegedIntent @@ -47,7 +46,7 @@ suspend fun main() { } applicationCommands { - defaultGuild(EnvironmentVariables.defaultGuildId?.let(::Snowflake)) + defaultGuild(EnvironmentVariables.defaultGuildId) } cache {