feat(Collector): allow collectors to be consumed by for-await-of loops (#3269)

This commit is contained in:
bdistin
2019-08-17 10:57:45 -05:00
committed by SpaceEEC
parent 7fae6e5bca
commit 6d3c55b68c
2 changed files with 32 additions and 0 deletions

1
typings/index.d.ts vendored
View File

@@ -363,6 +363,7 @@ declare module 'discord.js' {
public handleCollect(...args: any[]): void;
public handleDispose(...args: any[]): void;
public stop(reason?: string): void;
public [Symbol.asyncIterator](): AsyncIterableIterator<V>;
public toJSON(): object;
protected listener: Function;