Skip to content

v3.1.0

Compare
Choose a tag to compare
@jpbberry jpbberry released this 13 Apr 23:49
· 17 commits to master since this release
590d0ad
  • Added Webhook.listener() to replace Webhook.middleware()

Example

// ...
const webhook = new Webhook('auth')

const app = express()

app.post('/botvote', webhook.listener((vote) => {
  console.log(vote.user) // 172075838806818817
}))
// ...