Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.

Commit d41ed97

Browse files
authored
docs: call setEmitters before load (discord-akairo#53)
1 parent 9bafc15 commit d41ed97

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/basics/listeners.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ this.listenerHandler.setEmitters({
9393
});
9494
```
9595

96+
Note: You have to call `setEmitters` before `loadAll` or Akairo will not be able to resolve your emitters.
97+
9698
### Blocked Commands
9799

98100
Remember the `reason` for inhibitors in previous tutorial?

docs/listeners/emitters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ this.listenerHandler.setEmitters({
1313
});
1414
```
1515

16+
Note: You have to call `setEmitters` before `load` or `loadAll` so that Akairo will be able to resolve your emitters.
17+
1618
The key will be the emitter's name, and the value is the emitter itself.
1719
Now, we can use a listener on the process:
1820

0 commit comments

Comments
 (0)