Skip to main content
Module

x/harmony/mod.ts>Client#connect

An easy to use Discord API Library for Deno.
Go to Latest
method Client.prototype.connect
Re-export
import { Client } from "https://deno.land/x/harmony@v2.9.0/mod.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>