Skip to main content
Module

x/biscuit/mod.ts>EventEmitter

A Discord library that is easy to use but reliable on its core 🥠
Latest
class EventEmitter
Re-export
import { EventEmitter } from "https://deno.land/x/biscuit@0.2.4/mod.ts";

An event emitter (observer pattern)

Properties

listeners: Map<PropertyKey, Function[]>

Methods

emit(event: string, ...args: unknown[]): boolean
listenerCount(eventName: string): number
off(event: string, func: Function): this
on(event: string, func: Function): this
once(event: string, func: Function): this
rawListeners(eventName: string): Function[] | undefined