mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
feat: add resetTimeouts method to ComponentHandler
This commit is contained in:
parent
92ab65be7b
commit
fb9c59a51b
@ -38,6 +38,7 @@ export interface CreateComponentCollectorResult {
|
|||||||
callback: ComponentCallback<T>,
|
callback: ComponentCallback<T>,
|
||||||
): void;
|
): void;
|
||||||
stop(reason?: string): void;
|
stop(reason?: string): void;
|
||||||
|
resetTimeouts(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ComponentHandler extends BaseHandler {
|
export class ComponentHandler extends BaseHandler {
|
||||||
@ -115,6 +116,9 @@ export class ComponentHandler extends BaseHandler {
|
|||||||
this.createComponentCollector(messageId, channelId, guildId, options, old.components);
|
this.createComponentCollector(messageId, channelId, guildId, options, old.components);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
resetTimeouts: () => {
|
||||||
|
this.resetTimeouts(messageId);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user