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

x/harmony/src/client/client.ts>Client#connect

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

This function is used for connecting to discord.

Parameters

optional
token: string

Your token. This is required if not given in ClientOptions.

optional
intents: Array<GatewayIntents | keyof GatewayIntents>

Gateway intents in array. This is required if not given in ClientOptions.

Returns

Promise<Client>