import { Client } from "https://deno.land/x/harmony@v2.9.1/src/client/client.ts";
Harmony Client. Provides high-level interface over the REST and WebSocket API.
Constructors
new
Client(options?: ClientOptions)Properties
deprecated
slash: InteractionsClientreadonly
stickers: StickersManagerStickers Manager, providing cache interface to (Guild) Stickers and API interfacing
Methods
connect(token?: string, intents?: Array<GatewayIntents | keyof GatewayIntents>): Promise<Client>
This function is used for connecting to discord.
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