reactions: Destructure during make..reaction call from set..reaction.

This is a pure code refactor for readability.
This commit is contained in:
YashRE42
2021-12-19 16:11:45 +05:30
committed by Tim Abbott
parent 6fa92cce7e
commit 5e194afda3

View File

@@ -502,13 +502,7 @@ export function set_clean_reactions(message) {
message.clean_reactions.set( message.clean_reactions.set(
local_id, local_id,
make_clean_reaction({ make_clean_reaction({local_id, user_ids, ...reaction}),
local_id,
user_ids,
reaction_type: reaction.reaction_type,
emoji_name: reaction.emoji_name,
emoji_code: reaction.emoji_code,
}),
); );
} }
} }