deleteMessageReaction


General

deleteMessageReaction deletes a reaction from a message, no matter how many members have reacted using the corresponding emoji.


Usage

Client:deleteMessageReaction(<string> channelId, <string> messageId, <string> reaction, (string) user)
Returns: <array> data

Data array contains Reaction objects inside.
If there are no reactions in the message, this will return an empty table.


Limitations

See discordMessage PATCH.


Example

local message = Client:getMessage("493672466544197633", "569466540043534347")

for reactionId, reaction in pairs(message.reactions) do
    print(Client:deleteMessageReaction("493672466544197633", "569466540043534347", reactionId, '244728151693983744'))
end

 

Back to top