Skip to content

Commit

Permalink
fix: accept type
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan authored Oct 14, 2024
1 parent 9954110 commit cef5f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/karin/karin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class Karin extends Listeners {
* @param event - 监听事件
* @param fn - 实现函数
*/
accept<T extends keyof AcceptDict> (event: T, fn: (e: AcceptDict[T]) => boolean, options?: Options) {
accept<T extends keyof AcceptDict> (event: T, fn: (e: AcceptDict[T]) => Promise<boolean, options?: Options) {
const log = options?.log === false
? (id: string, text: string) => logger.bot('debug', id, text)
: (id: string, text: string) => logger.bot('info', id, text)
Expand Down

0 comments on commit cef5f03

Please sign in to comment.