feat: Roles now update on button press

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-09-06 22:09:59 +02:00
parent f552ea4faa
commit a3c1344f1a
3 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,7 @@ import dev.kord.core.entity.interaction.ButtonInteraction
import dev.kord.rest.builder.message.modify.embed
import net.moonleay.lilJudd.Bot
import net.moonleay.lilJudd.buttons.component.IEditButton
import net.moonleay.lilJudd.features.AvailabilityManager
import net.moonleay.lilJudd.util.EmbedUtil
class IsAvailableEditButton : IEditButton {
@ -62,5 +63,6 @@ class IsAvailableEditButton : IEditButton {
}
}
}
AvailabilityManager.runThread()
}
}

View file

@ -27,6 +27,7 @@ import dev.kord.core.entity.interaction.ButtonInteraction
import dev.kord.rest.builder.message.modify.embed
import net.moonleay.lilJudd.Bot
import net.moonleay.lilJudd.buttons.component.IEditButton
import net.moonleay.lilJudd.features.AvailabilityManager
import net.moonleay.lilJudd.util.EmbedUtil
class MaybeAvailableEditButton : IEditButton {
@ -62,5 +63,6 @@ class MaybeAvailableEditButton : IEditButton {
}
}
}
AvailabilityManager.runThread()
}
}

View file

@ -27,6 +27,7 @@ import dev.kord.core.entity.interaction.ButtonInteraction
import dev.kord.rest.builder.message.modify.embed
import net.moonleay.lilJudd.Bot
import net.moonleay.lilJudd.buttons.component.IEditButton
import net.moonleay.lilJudd.features.AvailabilityManager
import net.moonleay.lilJudd.util.EmbedUtil
class NotAvailableEditButton : IEditButton {
@ -62,5 +63,6 @@ class NotAvailableEditButton : IEditButton {
}
}
}
AvailabilityManager.runThread()
}
}