forked from DiscordBots/lilJudd
feat: Roles now update on button press
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
f552ea4faa
commit
a3c1344f1a
3 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue