Skip to content

Commit fb9c59a

Browse files
committed
feat: add resetTimeouts method to ComponentHandler
1 parent 92ab65b commit fb9c59a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/handler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface CreateComponentCollectorResult {
3838
callback: ComponentCallback<T>,
3939
): void;
4040
stop(reason?: string): void;
41+
resetTimeouts(): void;
4142
}
4243

4344
export class ComponentHandler extends BaseHandler {
@@ -115,6 +116,9 @@ export class ComponentHandler extends BaseHandler {
115116
this.createComponentCollector(messageId, channelId, guildId, options, old.components);
116117
});
117118
},
119+
resetTimeouts: () => {
120+
this.resetTimeouts(messageId);
121+
},
118122
};
119123
}
120124

0 commit comments

Comments
 (0)