Skip to content

Commit

Permalink
fix(README): link to event-handler module docs (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerKaiser committed Jun 9, 2020
1 parent 367dee2 commit e566b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ webhooks.receive({ id, name, payload });

Returns a promise. Runs all handlers set with [`webhooks.on()`](#webhookson) in parallel and waits for them to finish. If one of the handlers rejects or throws an error, then `webhooks.receive()` rejects. The returned error has an `.errors` property which holds an array of all errors caught from the handlers. If no errors occur, `webhooks.receive()` resolves without passing any value.

The `.receive()` method belongs to the [receiver](receiver/) module which can be used standalone.
The `.receive()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/).

### webhooks.on()

Expand Down Expand Up @@ -388,7 +388,7 @@ webhooks.on(eventNames, handler);
</tr>
</table>

The `.on()` method belongs to the [receiver](receiver/) module which can be used standalone.
The `.on()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/).

### webhooks.removeListener()

Expand Down Expand Up @@ -442,7 +442,7 @@ webhooks.removeListener(eventNames, handler);
</tr>
</table>

The `.removeListener()` method belongs to the [receiver](receiver/) module which can be used standalone.
The `.removeListener()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/).

### webhooks.middleware()

Expand Down

0 comments on commit e566b49

Please sign in to comment.