Skip to content

@tavora/sdk / DiscordCommands

Interface: DiscordCommands ​

Defined in: packages/sdk/src/protocol.ts:545

The Discord RPC commands a module may send through the discord connector, and their arguments. Tavora checks every argument and sends exactly these fields; Discord's answer comes back as it came.

Properties ​

GET_CHANNEL ​

GET_CHANNEL: object

Defined in: packages/sdk/src/protocol.ts:554

One channel, with who is in it when it is a voice channel.

channel_id ​

channel_id: string


GET_CHANNELS ​

GET_CHANNELS: object

Defined in: packages/sdk/src/protocol.ts:552

A server's channels (ids, names and types; voice channels are type 2, stage channels 13).

guild_id ​

guild_id: string


GET_GUILD ​

GET_GUILD: object

Defined in: packages/sdk/src/protocol.ts:550

guild_id ​

guild_id: string


GET_GUILDS ​

GET_GUILDS: Record<string, never>

Defined in: packages/sdk/src/protocol.ts:549

The servers the user is on.


GET_SELECTED_VOICE_CHANNEL ​

GET_SELECTED_VOICE_CHANNEL: Record<string, never>

Defined in: packages/sdk/src/protocol.ts:547

The voice channel the user is in, with its voice_states, or null.


SELECT_VOICE_CHANNEL ​

SELECT_VOICE_CHANNEL: object

Defined in: packages/sdk/src/protocol.ts:556

Joins a voice channel (an id) or leaves (null). Only right after a click or key press in the panel, one per click.

channel_id ​

channel_id: string | null


SET_USER_VOICE_SETTINGS ​

SET_USER_VOICE_SETTINGS: object

Defined in: packages/sdk/src/protocol.ts:560

How loud someone is for the user (0 to 200) and/or muted for the user only: Discord's own per-person settings.

mute? ​

optional mute?: boolean

user_id ​

user_id: string

volume? ​

optional volume?: number


SET_VOICE_SETTINGS ​

SET_VOICE_SETTINGS: object

Defined in: packages/sdk/src/protocol.ts:558

Mutes or deafens the user. Needs DiscordState.canControl.

deaf? ​

optional deaf?: boolean

mute? ​

optional mute?: boolean

For Tavora 0.23.9 and @tavora/sdk 0.3.3. Code under the MIT License. The Tavora name and logo are not covered by it.