import { Client } from "https://deno.land/x/discord_rpc@0.3.2/src/client.ts";
Constructors
new
Client(options: ClientOptions)Properties
optional
application: ApplicationPayloadoptional
config: ClientConfigoptional
ipc: DiscordIPCoptional
tokenExpires: Dateoptional
user: UserPayloadMethods
authenticate(token: string)
Authenticates with given access token.
This is automatically called when using authorize()
.
Starts complete OAuth2 flow, using given client secret and scopes in ClientOptions.
Throws if they are not provided.
Clears the currently set activity, if any. This will hide the "Playing X" message displayed below the user's name.
close()
closeActivityJoinRequest(userID: string)
closeActivityRequest(userID: string)
connect()
getChannel(channelID?: string)
getChannels(guildID?: string)
getGuild(guildID?: string)
getImage(options: GetImageOptions)
selectTextChannel(channelID: string, timeout?)
selectVoiceChannel()
channelID: string,
force?,
timeout?,
sendActivityJoinInvite(userID: string)
setActivity(activity?: Activity)
Set Presence Activity
setUserVoiceSettings(settings: Partial<UserVoiceSettings>)
setVoiceSettings(settings: Partial<VoiceSettings>)
subscribe<T extends Record<string, unknown>>(event: keyof RPCEvent, args?: T)
unsubscribe<T extends Record<string, unknown>>(event: keyof RPCEvent, args?: T)
[Symbol.asyncIterator](): AsyncIterableIterator<ClientEvent>