Browse Source

Add ConfigureAwait

pull/706/head
Christopher F 8 years ago
parent
commit
8fbc8b0aad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Extensions/UserExtensions.cs

+ 1
- 1
src/Discord.Net.Core/Extensions/UserExtensions.cs View File

@@ -10,7 +10,7 @@ namespace Discord
Embed embed = null, Embed embed = null,
RequestOptions options = null) RequestOptions options = null)
{ {
return await (await user.GetOrCreateDMChannelAsync()).SendMessageAsync(text, isTTS, embed, options);
return await (await user.GetOrCreateDMChannelAsync().ConfigureAwait(false)).SendMessageAsync(text, isTTS, embed, options).ConfigureAwait(false);
} }
} }
} }

Loading…
Cancel
Save