Skip to content

Commit

Permalink
[minor changes] Adds client as a param to read messeages discord context
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecmart committed Nov 21, 2024
1 parent bc7535b commit cee7bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protolib/src/bundles/discord/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const discord = {

// Call the onMessagesRead callback with the fetched messages
if (onMessagesRead) {
await onMessagesRead(messages);
await onMessagesRead(messages, client);
}
} catch (err) {
console.error("Error fetching messages from the channel:", err);
Expand Down

0 comments on commit cee7bcd

Please sign in to comment.