feat: added getMatchButtons to EmbedUtil

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-07-12 13:26:00 +02:00
parent ef28b08214
commit 9099d02bf4

View file

@ -38,6 +38,17 @@ object EmbedUtil {
return ar
}
fun getMatchButtons(): ActionRowBuilder {
val ar = ActionRowBuilder()
ar.interactionButton(ButtonStyle.Success, "public.edit.btn.matchmanagement.accept") {
this.label = "Sign me up!"
}
ar.interactionButton(ButtonStyle.Danger, "public.edit.btn.matchmanagement.cancel") {
this.label = "Cancel"
}
return ar
}
fun replaceXWithYinValuesAtTable(x: String, y: String, e: Embed, table: Int): EmbedBuilder {
val ebb = MessageUtil.getAClonedEmbedd(e)
for ((i, f) in e.fields.withIndex()) {