Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordjs_deno/src/client/client.ts>Client

discord.jsのdenoバージョン
Go to Latest
class Client
import { Client } from "https://deno.land/x/discordjs_deno@0.1/src/client/client.ts";

Constructors

new
Client(options: { Intents: (keyof Intents)[]; })

Properties

channels: ChannelManager
events: { name: any; fn: (arg?: any) => void; }[]
intents: number
token: string

Methods

emit<K extends keyof Events>(eventName: K, eventData: any)
login(token: string)
on<K extends keyof Events>(eventname: K, fn: (arg: Events[K]) => void)
request(endpoint: string, options: RequestInit)