Browse Source

DebuggerDisplay fix.

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

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

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


private string DebuggerDisplay => $"({Url}) {(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; public override string ToString() => Url;
} }
} }

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

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


private string DebuggerDisplay => $"({Url}) {(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; public override string ToString() => Url;
} }
} }

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

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


private string DebuggerDisplay => $"({Url}) {(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; public override string ToString() => Url;
} }
} }

Loading…
Cancel
Save