File tree 2 files changed +3
-3
lines changed
src/main/kotlin/com/mrkirby153/botcore
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import kotlinx.coroutines.suspendCancellableCoroutine
8
8
import net.dv8tion.jda.api.JDA
9
9
import net.dv8tion.jda.api.events.interaction.ModalInteractionEvent
10
10
import net.dv8tion.jda.api.hooks.ListenerAdapter
11
+ import net.dv8tion.jda.api.interactions.callbacks.IModalCallback
11
12
import net.dv8tion.jda.api.interactions.modals.Modal
12
13
import net.dv8tion.jda.api.sharding.ShardManager
13
14
import okhttp3.internal.toImmutableMap
@@ -141,8 +142,7 @@ suspend fun ModalManager.await(
141
142
return await(modal, timeout, timeUnit)
142
143
}
143
144
144
- @PublishedApi
145
- internal suspend fun ModalManager.await (
145
+ suspend fun ModalManager.await (
146
146
modal : Modal ,
147
147
timeout : Long = 5,
148
148
timeUnit : TimeUnit = TimeUnit .MINUTES
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import java.util.concurrent.TimeUnit
15
15
open class ModalManagerConfiguration (
16
16
private val shardManager : ShardManager ,
17
17
@Value(" \$ {bot.modal.gcPeriod:1}" ) private val time : Long ,
18
- @Value(" \$ {bot.modal.gcUnit:SECOND }" ) private val unit : TimeUnit ,
18
+ @Value(" \$ {bot.modal.gcUnit:SECONDS }" ) private val unit : TimeUnit ,
19
19
) {
20
20
21
21
private val log by SLF4J
You can’t perform that action at this time.
0 commit comments