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

x/discordjs_deno/src/index.ts>Client

discord.jsのdenoバージョン
Go to Latest
class Client
Re-export
import { Client } from "https://deno.land/x/discordjs_deno@0.16/src/index.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)