Skip to content

Commit

Permalink
send id with emit for deduping.
Browse files Browse the repository at this point in the history
  • Loading branch information
danhsiung committed Sep 17, 2020
1 parent 281ea72 commit 2528372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/discord/new-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const discord = require("https://github.com/PipedreamHQ/pipedream/components/dis

module.exports = {
name: 'new discord message',
version: '0.0.1',
version: '0.0.2',
dedupe: "unique",
props: {
discord,
Expand Down Expand Up @@ -33,6 +33,6 @@ module.exports = {
if (this.ignoreMyself && event.authorID == this.discord.$auth.oauth_uid) {
return
}
this.$emit(event)
this.$emit(event, { id: event.id })
},
}

0 comments on commit 2528372

Please sign in to comment.