Responsive Menus & DSL
Depends on #37
One of the most attractive features of a discord bot is the 1-message menu embeds which can be interacted with by reaction emotes or other means. JDAUtils displays this feature in typical clunky, hard to understand fashion. Strife should aim to simplify the process of making menus and enabling faster dev time.
message.menu {
reactionMenu {
users += message.author!!
inputs += setOf(
UnicodeEmoji.WhiteCircle("Check Response") { message.reply("Click") },
UnicodeEmoji.WhiteFlower("Edit Menu") {
reactionMenu {
users += message.author!!
embed = eb
inputs += UnicodeEmoji.Rewind("Go Back") { this@WhiteFlower.replace(menuMessage!!) }
inputs += UnicodeEmoji.X("Close Menu") { menuMessage?.delete() }
}.replace(menuMessage!!)
},
UnicodeEmoji.X("Delete The Menu") { menuMessage?.delete() }
)
embed = eb
}
}
Edited by JonoAugustine