No summary provided.
Constructs a new instance of the
VoiceAPI
className | Type | Optional | Description |
---|---|---|---|
rest | REST | No | None |
Edits a user's voice state in a guild
Name | Type | Optional | Description |
---|---|---|---|
guildId | Snowflake | No | The id of the guild to edit the current user's voice state in |
userId | Snowflake | No | The id of the user to edit the voice state for |
body | RESTPatchAPIGuildVoiceStateUserJSONBody | No | The data for editing the voice state |
options | Pick<RequestData, 'reason' | 'signal'> | Yes | The options for editing the voice state |
Edits the voice state for the current user
Name | Type | Optional | Description |
---|---|---|---|
guildId | Snowflake | No | The id of the guild |
body | RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody | Yes | The data for editing the voice state |
options | Pick<RequestData, 'signal'> | Yes | The options for editing the voice state |
Fetches voice state of a user by their id
Name | Type | Optional | Description |
---|---|---|---|
options | Snowflake | No | The options for fetching user voice state |
userId | Snowflake | No | None |
{ signal } | Pick<RequestData, 'signal'> | Yes | None |
Fetches all voice regions
Name | Type | Optional | Description |
---|---|---|---|
options | Pick<RequestData, 'signal'> | Yes | The options for fetching the voice regions |
Fetches the current user's voice state
Name | Type | Optional | Description |
---|---|---|---|
options | Snowflake | No | The options for fetching user voice state |
{ signal } | Pick<RequestData, 'signal'> | Yes | None |