Skip to main content
Module

x/harmony/deps.ts>EventEmitter#emit

An easy to use Discord API Library for Deno.
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/harmony@v2.9.0/deps.ts";

Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

Type Parameters

K extends keyof E

Parameters

eventName: K
...args: E[K]

Returns

Promise<void>