Merge branch 'dev' into sql-updates

This commit is contained in:
Noi 2022-12-03 17:47:57 -08:00
commit 3dd252c353

View file

@ -21,7 +21,7 @@ internal partial class ModLogs {
/// Builds and returns an embed which displays this log entry. /// Builds and returns an embed which displays this log entry.
/// </summary> /// </summary>
private Embed BuildLogEmbed(ModLogEntry entry) { private Embed BuildLogEmbed(ModLogEntry entry) {
var issuedDisplay = Utilities.TryFromEntityNameString(entry.IssuedBy, bot); var issuedDisplay = Utilities.TryFromEntityNameString(entry.IssuedBy, Bot);
string targetDisplay; string targetDisplay;
var targetq = Bot.EcQueryUser(entry.UserId.ToString()); var targetq = Bot.EcQueryUser(entry.UserId.ToString());
if (targetq != null) targetDisplay = $"<@{targetq.UserId}> - {targetq.Username}#{targetq.Discriminator} `{targetq.UserId}`"; if (targetq != null) targetDisplay = $"<@{targetq.UserId}> - {targetq.Username}#{targetq.Discriminator} `{targetq.UserId}`";