Delete reactions when their parent message is deleted
This commit is contained in:
parent
e6ca3872d1
commit
efde909484
4 changed files with 185 additions and 8 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue