Skip to content

Commit

Permalink
fix: accidental bug where auto-defer always defer
Browse files Browse the repository at this point in the history
  • Loading branch information
ShindouMihou committed Feb 24, 2023
1 parent f20a59e commit c125075
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class NexusCommandEventCore(private val event: SlashCommandCreateEvent, private
if (!deferredTaskRan.get() && task != null) {
task.cancel(false)
}
val updater = respondLaterAsEphemeralIf(ephemeral).exceptionally {
future.completeExceptionally(it)
return@exceptionally null
}
val updater = updater.get()
if (updater == null) {
val responder = respondNow()
if (ephemeral) {
Expand Down

0 comments on commit c125075

Please sign in to comment.