Delete reactions when their parent message is deleted
This commit is contained in:
@@ -221,6 +221,7 @@ const dataInterface: ClientInterface = {
|
||||
markReactionAsRead,
|
||||
removeReactionFromConversation,
|
||||
addReaction,
|
||||
_getAllReactions,
|
||||
|
||||
getMessageBySender,
|
||||
getMessageById,
|
||||
@@ -1258,6 +1259,10 @@ async function addReaction(reactionObj: ReactionType) {
|
||||
return channels.addReaction(reactionObj);
|
||||
}
|
||||
|
||||
async function _getAllReactions() {
|
||||
return channels._getAllReactions();
|
||||
}
|
||||
|
||||
function handleMessageJSON(messages: Array<MessageTypeUnhydrated>) {
|
||||
return messages.map(message => JSON.parse(message.json));
|
||||
}
|
||||
|
Reference in New Issue
Block a user