Commit e68e9e4 committed Dec 27, 2024 · 1 / 1
1 parent 29f6122 commit e68e9e4 Copy full SHA for e68e9e4
File tree 1 file changed +2
-5
lines changed
foxy/src/main/kotlin/net/cakeyfox/foxy/modules/welcomer
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
package net.cakeyfox.foxy.modules.welcomer
2
2
3
- import kotlinx.coroutines.CoroutineScope
4
- import kotlinx.coroutines.Dispatchers
5
- import kotlinx.coroutines.launch
6
- import kotlinx.coroutines.withContext
3
+ import kotlinx.coroutines.*
7
4
import net.cakeyfox.foxy.FoxyInstance
8
5
import net.cakeyfox.foxy.modules.welcomer.utils.WelcomerWrapper
9
6
import net.cakeyfox.foxy.modules.welcomer.utils.WelcomerJSONParser
@@ -14,7 +11,7 @@ class WelcomerManager(
14
11
val foxy : FoxyInstance
15
12
) : WelcomerWrapper {
16
13
private val welcomer = WelcomerJSONParser ()
17
- private val scope = CoroutineScope (Dispatchers .IO )
14
+ private val scope = CoroutineScope (Dispatchers .IO + SupervisorJob () )
18
15
19
16
override fun onGuildJoin (event : GuildMemberJoinEvent ) {
20
17
scope.launch {
You can’t perform that action at this time.
0 commit comments