Implement reacting to stories

This commit is contained in:
AsamK 2022-10-30 14:41:02 +01:00
parent 207764e0be
commit fea19c9e20
9 changed files with 33 additions and 10 deletions

View file

@ -193,6 +193,9 @@ pub enum CliCommands {
#[arg(short = 'r', long)]
remove: bool,
#[arg(long)]
story: bool,
},
SendReceipt {
recipient: String,

View file

@ -155,6 +155,7 @@ pub trait Rpc {
#[allow(non_snake_case)] targetAuthor: String,
#[allow(non_snake_case)] targetTimestamp: u64,
remove: bool,
story: bool,
) -> Result<Value>;
#[rpc(name = "sendReceipt", params = "named")]

View file

@ -164,6 +164,7 @@ async fn main() -> Result<(), anyhow::Error> {
target_author,
target_timestamp,
remove,
story,
} => {
client
.send_reaction(
@ -175,6 +176,7 @@ async fn main() -> Result<(), anyhow::Error> {
target_author,
target_timestamp,
remove,
story,
)
.await
}