Browse Source

Something like this perhaps

tags/1.0-rc
Sindre G. Langhus 8 years ago
parent
commit
f8e3ac9910
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/Discord.Net.Core/Entities/Messages/EmbedImage.cs
  2. +2
    -2
      src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs
  3. +2
    -2
      src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs

+ 2
- 2
src/Discord.Net.Core/Entities/Messages/EmbedImage.cs View File

@@ -25,7 +25,7 @@ namespace Discord
model.Width.IsSpecified ? model.Width.Value : (int?)null);
}

private string DebuggerDisplay => $"{ToString()} ({Url})";
public override string ToString() => Width != null && Height != null ? $"{Width}x{Height}" : "0x0";
private string DebuggerDisplay => $"({Url}){(Width != null && Height != null ? $"{Width}x{Height}" : "0x0")}";
public override string ToString() => Url;
}
}

+ 2
- 2
src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs View File

@@ -25,7 +25,7 @@ namespace Discord
model.Width.IsSpecified ? model.Width.Value : (int?)null);
}

private string DebuggerDisplay => $"{ToString()} ({Url})";
public override string ToString() => Width != null && Height != null ? $"{Width}x{Height}" : "0x0";
private string DebuggerDisplay => $"({Url}){(Width != null && Height != null ? $"{Width}x{Height}" : "0x0")}";
public override string ToString() => Url;
}
}

+ 2
- 2
src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs View File

@@ -23,7 +23,7 @@ namespace Discord
model.Width.IsSpecified ? model.Width.Value : (int?)null);
}

private string DebuggerDisplay => $"{ToString()} ({Url})";
public override string ToString() => Width != null && Height != null ? $"{Width}x{Height}" : "0x0";
private string DebuggerDisplay => $"({Url}){(Width != null && Height != null ? $"{Width}x{Height}" : "0x0")}";
public override string ToString() => Url;
}
}

Loading…
Cancel
Save