async function updateBotVoiceState(guildId, options) {
  return await rest.runMethod(
    "patch",
    endpoints.UPDATE_VOICE_STATE(
      guildId,
      hasOwnProperty(options, "userId") ? options.userId : undefined,
    ),
    snakelize(options),
  );
}
/**
 * Updates the a user's voice state, defaults to the current user
 * Caveats:
 *  - `channel_id` must currently point to a stage channel.
 *  - User must already have joined `channel_id`.
 *  - You must have the `MUTE_MEMBERS` permission. But can always suppress yourself.
 *  - When unsuppressed, non-bot users will have their `request_to_speak_timestamp` set to the current time. Bot users will not.
 *  - You must have the `REQUEST_TO_SPEAK` permission to request to speak. You can always clear your own request to speak.
 *  - You are able to set `request_to_speak_timestamp` to any present or future time.
 *  - When suppressed, the user will have their `request_to_speak_timestamp` removed.
 */
Updates the a user's voice state, defaults to the current user
Caveats:
- `channel_id` must currently point to a stage channel.
- User must already have joined `channel_id`.
- You must have the `MUTE_MEMBERS` permission. But can always suppress yourself.
- When unsuppressed, non-bot users will have their `request_to_speak_timestamp` set to the current time. Bot users will not.
- You must have the `REQUEST_TO_SPEAK` permission to request to speak. You can always clear your own request to speak.
- You are able to set `request_to_speak_timestamp` to any present or future time.
- When suppressed, the user will have their `request_to_speak_timestamp` removed.
Updates the a user ' s voice state defaults to the current user Caveats : - ` channel_id ` must currently point to a stage channel . - User must already have joined ` channel_id ` . - You must have the ` MUTE_MEMBERS ` permission . But can always suppress yourself . - When unsuppressed non - bot users will have their ` request_to_speak_timestamp ` set to the current time . Bot users will not . - You must have the ` REQUEST_TO_SPEAK ` permission to request to speak . You can always clear your own request to speak . - You are able to set ` request_to_speak_timestamp ` to any present or future time . - When suppressed the user will have their ` request_to_speak_timestamp ` removed .
async function updateBotVoiceState(guildId, options) {
  return await rest.runMethod(
    "patch",
    endpoints.UPDATE_VOICE_STATE(
      guildId,
      hasOwnProperty(options, "userId") ? options.userId : undefined,
    ),
    snakelize(options),
  );
}
async function updateBotVoiceState ( guildId , options ) { return await rest . runMethod ( "patch" , endpoints . UPDATE_VOICE_STATE ( guildId , hasOwnProperty ( options , "userId" ) ? options . userId : undefined , ) , snakelize ( options ) , ) ; }
Updates the a user's voice state, defaults to the current user
 Caveats:
  - `channel_id` must currently point to a stage channel.
Updates the a user ' s voice state defaults to the current user Caveats : - ` channel_id ` must currently point to a stage channel .