3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 23:25:02 +00:00

Port Censor and Spam plugins to use GuildSavedMessages events

This commit is contained in:
Dragory 2018-11-24 17:12:36 +02:00
parent aee9d3d87c
commit 0eee5529b6
4 changed files with 237 additions and 114 deletions

View file

@ -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));
});
}
}