-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not possible to remove emoji #100
Comments
What do you mean by remove the emoji? |
When reacting to somebody's message, it's possible to add an emoji (not as a text reply, but marking the message just as the above thumbs up). However I couldn't figure out a way to remove this again. |
I think I better understand the request. As it stands today there is no way to remove a reaction emoji in mmpy_bot, but the Mattermost API supports removal of reactions. I am adding this as an enhancement request. Can you give me a better feel for the use case you have in mind? Are you wanting to remove reactions the bot added, or reactions that other users added? |
Per enhancment request #100 this adds a method to the Message class called remove_reaction() which takes in the emoji_name to be removed as a parameter.
Please test pull request #101 and let me know if it works the way you think it should. |
My use case is a poll system, where a bot reacts to "#poll: a,b,c" by creating a message that reads:
and additionally reacts to this message with the emojis 1️⃣2️⃣3️⃣. Thanks for the PR, I'll take a look! |
* Adding feature to remove reactions Per enhancment request #100 this adds a method to the Message class called remove_reaction() which takes in the emoji_name to be removed as a parameter. * Adding '/users/' to reaction delete url
It is currently not possible (or documented) to remove emojis sent using e.g.:
message.react("pizza")
The text was updated successfully, but these errors were encountered: