Skip to content

Commit

Permalink
Set default guild based on String over Snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
russellbanks committed May 16, 2023
1 parent e36d760 commit e9f6bec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
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
Expand All @@ -47,7 +46,7 @@ suspend fun main() {
}

applicationCommands {
defaultGuild(EnvironmentVariables.defaultGuildId?.let(::Snowflake))
defaultGuild(EnvironmentVariables.defaultGuildId)
}

cache {
Expand Down

0 comments on commit e9f6bec

Please sign in to comment.