class ClientUser
extends User
Re-export
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@v1.1.2/mod.ts";
Methods
getImage(): Promise<string>
userId: string,
format?: "png" | "webp" | "jpg",
size?: ,
| 16
| 32
| 64
| 128
| 256
| 512
| 1024
Used to get a user's avatar
getRelationships(): Promise<Array<User>>
getSelectedVoiceChannel(): Promise<Channel | null>
Used to get the client's current voice channel. There are no arguments for this command. Returns the Get Channel response, or null
if none.
leaveVoiceChannel(timeout?: number, force?: boolean): Promise<void>
Used to leave voice channels, group dms, or dms
selectTextChannel(channelId: string, timeout?: number): Promise<Channel | null>
Used to join text channels, group dms, or dms. Returns the Get Channel response, or null
if none.
selectVoiceChannel(): Promise<Channel>
channelId: string,
timeout?: number,
force?: boolean,
Used to join voice channels, group dms, or dms. Returns the Get Channel response, null
if none.
setActivity(activity: SetActivity, pid?: number): Promise<SetActivityResponse>
Used to update a user's Rich Presence.
setCeritfiedDevices(devices: CertifiedDevice[]): Promise<void>
Used by hardware manufacturers to send information about the current state of their certified devices that are connected to Discord.
setVoiceSettings(voiceSettings: Partial<VoiceSettings>): Promise<VoiceSettings>
Used to change voice settings of users in voice channels