Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/src/types/mod.ts>default#pull

An Object Oriented Discord API wrapper for Deno.
Latest
method default.prototype.pull
import { default } from "https://deno.land/x/denocordts@1.2.0/src/types/mod.ts";

Wait for a typed event to be emitted and return the arguments.

Type Parameters

K extends keyof E

Parameters

event: K

The typed event name to wait for.

optional
timeout: number

An optional amount of milliseconds to wait before throwing.

Returns

Promise<Parameters<E[K]>>