Client module (alt-client)FunctionsonceBranch: Release Candidateonce Callableonce<K>(eventName: K, listener: (...args: Parameters<K extends keyof IClientEvent ? IClientEvent[K] : K extends never ? ICustomEmitEvent[K] : never>) => void): voidonce<K>(eventName: Exclude<K, keyof IClientEvent>, listener: (...args: any[]) => void): voidSubscribes to a client event with the specified listener, which only triggers once.Type parametersK: keyof IClientEvent
Subscribes to a client event with the specified listener, which only triggers once.