57 public function addUsers(
string $reaction, array $users): self
59 if (isset($this->reactionUsers[$reaction]))
61 $this->reactionUsers[$reaction] = array_merge($this->reactionUsers[$reaction], $users);
65 $this->reactionUsers[$reaction] = $users;
100 $converter =
new Converter(Converter::KEYS | Converter::VALUES | Converter::TO_LOWER | Converter::LC_FIRST);
102 'messageId' => $this->messageId,
103 'reactionCounters' => $converter->process($this->reactionCounters),
104 'reactionUsers' => $converter->process($this->reactionUsers),
107 if (!isset($option[
'WITHOUT_OWN_REACTIONS']) || $option[
'WITHOUT_OWN_REACTIONS'] ===
false)
109 $rest[
'ownReactions'] = $converter->process($this->ownReactions);