mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +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>,
|
||||
): void;
|
||||
stop(reason?: string): void;
|
||||
resetTimeouts(): void;
|
||||
}
|
||||
|
||||
export class ComponentHandler extends BaseHandler {
|
||||
@ -115,6 +116,9 @@ export class ComponentHandler extends BaseHandler {
|
||||
this.createComponentCollector(messageId, channelId, guildId, options, old.components);
|
||||
});
|
||||
},
|
||||
resetTimeouts: () => {
|
||||
this.resetTimeouts(messageId);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user