misc: Remove URI check from EmbedBuilder (#1778)

`Uri.IsWellFormedUriString()` doesn't return the expected result for specific urls, removed until the DotNet team actually resolves it ( https://github.com/dotnet/runtime/issues/21626 )
This commit is contained in:
Yeba
2021-04-28 15:48:15 +02:00
committed by GitHub
parent f67cd8ea55
commit 25b04c4a97
3 changed files with 6 additions and 114 deletions

View File

@@ -1,10 +0,0 @@
using System;
namespace Discord
{
internal static class StringExtensions
{
public static bool IsNullOrUri(this string url) =>
string.IsNullOrEmpty(url) || Uri.IsWellFormedUriString(url, UriKind.Absolute);
}
}