Added attachment count to Message.DebuggerDisplay
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user