Update Dependencies and support NS2.0 builds (#1046)
* Update deps, fix test warnings. * Support ns2.0 * Fix typo * Remove ns1.1 support * Net.Http and Net.Websockets.Client are not needed in ns2.0 * Move to net46 per volt * Remove ns1.3 constants
This commit is contained in:
@@ -32,7 +32,6 @@ namespace Discord
|
||||
return await (await user.GetOrCreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(stream, filename, text, isTTS, embed, options).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
#if FILESYSTEM
|
||||
/// <summary>
|
||||
/// Sends a file to the user via DM.
|
||||
/// </summary>
|
||||
@@ -45,7 +44,6 @@ namespace Discord
|
||||
{
|
||||
return await (await user.GetOrCreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(filePath, text, isTTS, embed, options).ConfigureAwait(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
public static Task BanAsync(this IGuildUser user, int pruneDays = 0, string reason = null, RequestOptions options = null)
|
||||
=> user.Guild.AddBanAsync(user, pruneDays, reason, options);
|
||||
|
||||
Reference in New Issue
Block a user