botscript: create ButtonLayout enum
This commit is contained in:
parent
f8c63e5315
commit
cbb9c0c335
@ -430,6 +430,14 @@ impl BotMessage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub enum ButtonLayout {
|
||||||
|
Callback {
|
||||||
|
name: String,
|
||||||
|
literal: Option<String>,
|
||||||
|
callback: String,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
impl Parcelable<BotFunction> for BotMessage {
|
impl Parcelable<BotFunction> for BotMessage {
|
||||||
fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> {
|
fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> {
|
||||||
match name {
|
match name {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user