Skip to content

Commit

Permalink
fix: #1123 - Fixing issue with discord observors (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensontrinh authored Oct 23, 2024
1 parent f4d1e40 commit 891760b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/yetibot/core/adapters/discord.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@
user-model (assoc (users/get-user cs message-author-id)
:yetibot? yetibot?)
message-content (:content @(messaging/get-channel-message! rest-conn channel-id message-id))]
(handler/handle-raw
cs
user-model
:react
@yetibot-user
{:reaction emoji-name
:body message-content
:message-user message-author-id}))))))
(binding [chat/*target* (:channel-id event-data)]
(handler/handle-raw
cs
user-model
:react
@yetibot-user
{:reaction emoji-name
:body message-content
:message-user message-author-id})))))))


(defmethod handle-event :message-create
Expand Down

0 comments on commit 891760b

Please sign in to comment.