Restructure message info embed queries

This fixes several long-standing issues wrt. handling of senders that are no longer on the server and deleted accounts, as well as an error handling issue caused by the DSharpPlus migration.
This commit is contained in:
Ske
2020-05-08 00:57:17 +02:00
parent 53582997f0
commit cb8234b272
2 changed files with 21 additions and 22 deletions

View File

@@ -88,7 +88,7 @@ namespace PluralKit.Bot
public static string WorkaroundForUrlBug(string input)
{
// Workaround for https://github.com/DSharpPlus/DSharpPlus/issues/565
return input.Replace("%20", "+");
return input?.Replace("%20", "+");
}
}
}