Skip to content

Menus

TODO: Banner

Menus (not to be confused with context menus) are expandable lists that you can append to the bottom of a message. There is currently 5 types of menus, channels, roles, strings, mentionables, and members.

Message {
MessageContent {
Heading("Translate")
Text("Select a language to translate to.")
}
MessageComponents {
ActionRow {
StringMenu {
for language in languages {
StringMenuOption("\(language.name)")
.emoji(language.flag)
}
}.id("language")
}
}
}