File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import consola from 'consola'
33import { colors } from 'consola/utils'
44import { toOption , resolveOption } from './utils'
55import { ctx } from './harmonix'
6- import { ParsedInputs , type Harmonix , type ParsedOptions } from './types'
6+ import type { Harmonix , ParsedInputs , ParsedOptions } from './types'
77
88export const registerEvents = ( harmonix : Harmonix ) => {
99 for ( const [ , event ] of harmonix . events . filter ( ( evt ) => ! evt . options . type ) ) {
@@ -15,7 +15,7 @@ export const registerEvents = (harmonix: Harmonix) => {
1515 } )
1616 } )
1717 } else {
18- harmonix . client ?. once ( event . options . name ! , ( ...args ) => {
18+ harmonix . client ?. on ( event . options . name ! , ( ...args ) => {
1919 ctx . call ( harmonix , ( ) => {
2020 event . callback ( ...( args as ClientEvents [ keyof ClientEvents ] ) )
2121 } )
You can’t perform that action at this time.
0 commit comments