export Class
CallbackCollector ​
extends ​
Collector<CallbackCollectorOptions, string, CallbackQuery>
Constructor ​
ts
new CallbackCollector( chat, options )| Parameter | Type | Description |
|---|---|---|
chat | Chat | |
options? | CallbackCollectorOptions |
Properties ​
get endReason : undefined | string ​
get next : Promise<Message> ​
chat : Chat ​
readonly client : Client ​
collection : Collection<string, any> ​
ended : boolean ​
filter : CollectorFilter ​
options : undefined | CallbackCollectorOptions ​
received : number ​
Methods ​
asyncIterator ​
Returns:
AsyncGenerator<unknown,void,unknown>
checkEnd( ) ​
Returns:
boolean
collect( collect ) ​
| Parameter | Type | Description |
|---|---|---|
collect | CallbackQuery |
Returns:
null|string
dispose( collect ) ​
| Parameter | Type | Description |
|---|---|---|
collect | CallbackQuery |
Returns:
null|string
asynchandleCollect( collect ) ​
| Parameter | Type | Description |
|---|---|---|
collect | CallbackQuery |
Returns:
Promise<void>
asynchandleDispose( dispose ) ​
| Parameter | Type | Description |
|---|---|---|
dispose | CallbackQuery |
Returns:
Promise<void>
stop( reason ) ​
| Parameter | Type | Description |
|---|---|---|
reason = 'user' | string |
Returns:
void