Skip to content

Commit

Permalink
fix: message collector cleanup events (#189)
Browse files Browse the repository at this point in the history
* fix: message collector cleanup events

* Create angry-emus-bow.md
  • Loading branch information
zaida04 authored Nov 1, 2022
1 parent 872cd3e commit e737e36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-emus-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"guilded.js": patch
---

fix: message collector cleanup events
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class MessageCollector extends Collector<Message> {

_cleanup(): void {
this.decrementMaxEventListeners();
this.client.removeListener(constants.clientEvents.MESSAGE_CREATED, this.itemReceived);
this.client.removeListener(constants.clientEvents.MESSAGE_CREATED, this.boundItemReceiver);
}
}

0 comments on commit e737e36

Please sign in to comment.