Add documentation

This commit is contained in:
bitfl0wer 2023-06-03 18:59:13 +02:00
parent be512504c5
commit 4d6ad1cd7b
1 changed files with 18 additions and 0 deletions

View File

@ -12,6 +12,14 @@ pub struct ReactionMeta {
} }
impl ReactionMeta { impl ReactionMeta {
/**
Deletes all reactions for a message.
# Arguments
* `user` - A mutable reference to a `UserMeta` instance.
# Returns
A `Result` containing a `reqwest::Response` or a `crate::errors::InstanceServerError`.
*/
pub async fn delete_all( pub async fn delete_all(
&self, &self,
user: &mut UserMeta, user: &mut UserMeta,
@ -35,6 +43,16 @@ impl ReactionMeta {
.await .await
} }
/**
Gets a list of users that reacted with a specific emoji to a message.
# Arguments
* `emoji` - A string slice containing the emoji to search for.
* `user` - A mutable reference to a `UserMeta` instance.
# Returns
A `Result` containing a `reqwest::Response` or a `crate::errors::InstanceServerError`.
*/
pub async fn get( pub async fn get(
&self, &self,
emoji: &str, emoji: &str,