this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 20 lines 567 B view raw
1use fluxer_rs::{api::channels::Channel, command, util::get_emoji}; 2 3#[command(RemoveReactCommand)] 4async fn execute(api: &FluxerApiHandler, feedback: &CommandFeedback) { 5 let data = feedback.data; 6 let args = &feedback.args; 7 let channel = Channel::new(&data.channel_id, api); 8 let message = channel.message(args.get(1).unwrap()); 9 10 if args.len() != 2 { 11 channel.send_message("Invalid syntax").await?; 12 return Ok(()); 13 } 14 15 message 16 .remove_all_emoji_reactions(&get_emoji(args.get(2).unwrap())) 17 .await?; 18 19 Ok(()) 20}