Remove a Reaction from a Mattermost Post
remove_reaction.RdDeletes a specific reaction (emoji) that a user previously added to a post.
Arguments
- user_id
The ID of the user whose reaction to remove.
- post_id
The ID of the post to remove the reaction from.
- emoji_name
The name of the emoji to remove (e.g.
"thumbsup"). Colons are stripped automatically.- verbose
(Logical) If
TRUE, detailed information about the request and response will be printed.- auth
The authentication object created by
authenticate_mattermost(). Must be a validmattermost_authobject.
Value
A named list with the deletion status as returned by the
Mattermost API (typically list(status = "OK")).
Examples
if (FALSE) { # \dontrun{
auth <- authenticate_mattermost()
me <- get_me(auth = auth)
# Remove a thumbsup reaction
remove_reaction(
user_id = me$id,
post_id = "post_abc123",
emoji_name = "thumbsup",
auth = auth
)
} # }