Skip to content

Commit

Permalink
refactor: remove redundant scope launch
Browse files Browse the repository at this point in the history
Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
  • Loading branch information
SerenModz21 committed Mar 16, 2024
1 parent 02ec7d9 commit 52d640c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import dev.kord.gateway.Intent
import dev.kord.gateway.PrivilegedIntent
import dev.kord.rest.builder.message.allowedMentions
import dev.kord.rest.builder.message.create.WebhookMessageCreateBuilder
import kotlinx.coroutines.launch
import net.kings_world.discord_bridge.DiscordBridge.logger
import net.kings_world.discord_bridge.DiscordBridge.scope
import net.kings_world.discord_bridge.DiscordBridgeEvents
import net.kings_world.discord_bridge.config.Config
import net.minecraft.server.MinecraftServer
Expand Down Expand Up @@ -90,7 +88,7 @@ class Discord(private val config: Config) {
return
}

scope.launch { channel.createMessage { content = message; allowedMentions { } } }
channel.createMessage { content = message; allowedMentions { } }
}

suspend fun setPresence(activity: Config.Activity) {
Expand Down

0 comments on commit 52d640c

Please sign in to comment.