import { Client } from "https://deno.land/x/harmony@v2.7.0/mod.ts";
Harmony Client. Provides high-level interface over the REST and WebSocket API.
Properties
Methods
connect(token?: string, intents?: Array<GatewayIntents | keyof GatewayIntents>): Promise<Client>
This function is used for connecting to discord.
editUser(data: { username?: string; avatar?: string; }): Promise<Client>
Modify current (Client) User.
emit(event: keyof ClientEvents, ...args: any[]): Promise<void>
fetchVoiceRegions(): Promise<VoiceRegion[]>
Returns an array of voice region objects that can be used when creating servers.
getEstimatedID(): string
setAdapter(adapter: ICacheAdapter): Client
Sets Cache Adapter
Should NOT be set after bot is already logged in or using current cache.
Please look into using cache
option.
setPresence(presence: ClientPresence | ClientActivity | ActivityGame, onlyInShards?: number[]): void
Changes Presence of Client