import { Client } from "https://deno.land/x/discord_rpc_deno@1.0.8/src/Client.ts";
Constructors
new
Client(options: ClientOptions)Properties
private
_nonceMap: Map<string, { resolve: (value?: any) => void; reject: (reason?: any) => void; error: RPCError; }>optional
application: APIApplicationcurrent application
readonly
transport: Transporttransport instance
optional
user: ClientUsercurrent user
Methods
private
authenticate(): Promise<void>private
authorize(options: AuthorizeOptions): Promise<void>private
hanleAccessTokenResponse(data: any): voidprivate
refreshAccessToken(): Promise<void>connect(): Promise<void>
connect to the local rpc server
destroy(): Promise<void>
disconnects from the local rpc server
login(options?: AuthorizeOptions): Promise<void>
will try to authorize if a scope is specified, else it's the same as connect()
request<A = any, D = any>(): Promise<CommandIncoming<A, D>>