Browse Source

fix NRE with request options

pull/1888/head
quin lynch 3 years ago
parent
commit
85ed32edfe
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.WebSocket/DiscordSocketApiClient.cs

+ 1
- 0
src/Discord.Net.WebSocket/DiscordSocketApiClient.cs View File

@@ -318,6 +318,7 @@ namespace Discord.API
SelfDeaf = selfDeaf,
SelfMute = selfMute
};
options = RequestOptions.CreateOrClone(options);
await SendGatewayAsync(GatewayOpCode.VoiceStateUpdate, payload, options: options).ConfigureAwait(false);
}
public async Task SendVoiceStateUpdateAsync(VoiceStateUpdateParams payload, RequestOptions options = null)


Loading…
Cancel
Save