pub struct Reactions {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Reactions
impl Reactions
Sourcepub async fn add(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn add(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /reactions.add endpoint.
Adds a reaction to an item.
FROM: https://api.slack.com/methods/reactions.add
Parameters:
token: &str– Authentication token. Requires scope:reactions:write.
Sourcepub async fn get(
&self,
channel: &str,
file: &str,
file_comment: &str,
full: bool,
timestamp: &str,
) -> Result<Response<Fields>, ClientError>
pub async fn get( &self, channel: &str, file: &str, file_comment: &str, full: bool, timestamp: &str, ) -> Result<Response<Fields>, ClientError>
This function performs a GET to the /reactions.get endpoint.
Gets reactions for an item.
FROM: https://api.slack.com/methods/reactions.get
Parameters:
token: &str– Authentication token. Requires scope:reactions:read.channel: &str– Channel where the message to get reactions for was posted.file: &str– File to get reactions for.file_comment: &str– File comment to get reactions for.full: bool– If true always return the complete reaction list.timestamp: &str– Timestamp of the message to get reactions for.
Sourcepub async fn list(
&self,
user: &str,
full: bool,
count: i64,
page: i64,
cursor: &str,
limit: i64,
) -> Result<Response<ReactionsListSchema>, ClientError>
pub async fn list( &self, user: &str, full: bool, count: i64, page: i64, cursor: &str, limit: i64, ) -> Result<Response<ReactionsListSchema>, ClientError>
This function performs a GET to the /reactions.list endpoint.
Lists reactions made by a user.
FROM: https://api.slack.com/methods/reactions.list
Parameters:
token: &str– Authentication token. Requires scope:reactions:read.user: &str– Show reactions made by this user. Defaults to the authed user.full: bool– If true always return the complete reaction list.count: i64page: i64cursor: &str– Parameter for pagination. Setcursorequal to thenext_cursorattribute returned by the previous request’sresponse_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first “page” of the collection. See pagination for more details.limit: i64– The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn’t been reached.
Sourcepub async fn remove(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn remove(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /reactions.remove endpoint.
Removes a reaction from an item.
FROM: https://api.slack.com/methods/reactions.remove
Parameters:
token: &str– Authentication token. Requires scope:reactions:write.
Auto Trait Implementations§
impl Freeze for Reactions
impl !RefUnwindSafe for Reactions
impl Send for Reactions
impl Sync for Reactions
impl Unpin for Reactions
impl !UnwindSafe for Reactions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more