Added attachment count to Message.DebuggerDisplay

This commit is contained in:
RogueException
2016-05-16 01:40:24 -03:00
parent 08413a3990
commit 0f4e3819c5
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ namespace Discord.Rest
}
public override string ToString() => Text;
private string DebuggerDisplay => $"{Author}: {Text}";
private string DebuggerDisplay => $"{Author}: {Text}{(Attachments.Count > 0 ? $" [{Attachments.Count} Attachments]" : "")}";
IUser IMessage.Author => Author;
IReadOnlyList<Attachment> IMessage.Attachments => Attachments;

View File

@@ -140,7 +140,7 @@ namespace Discord.WebSocket
}
public override string ToString() => Text;
private string DebuggerDisplay => $"{Author}: {Text}";
private string DebuggerDisplay => $"{Author}: {Text}{(Attachments.Count > 0 ? $" [{Attachments.Count} Attachments]" : "")}";
IUser IMessage.Author => Author;
IReadOnlyList<Attachment> IMessage.Attachments => Attachments;