Port Censor and Spam plugins to use GuildSavedMessages events
This commit is contained in:
parent
fbb1ee4719
commit
1a6e680d81
4 changed files with 237 additions and 114 deletions
|
@ -32,7 +32,7 @@ export class QueuedEventEmitter {
|
|||
const listeners = [...(this.listeners.get(eventName) || []), ...(this.listeners.get("*") || [])];
|
||||
|
||||
listeners.forEach(listener => {
|
||||
this.queue.add(listener.bind(null, args));
|
||||
this.queue.add(listener.bind(null, ...args));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue