mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Rename isForward to isForwarded
This commit is contained in:
parent
2f96252866
commit
6debb1c825
|
|
@ -36,12 +36,12 @@ public partial record Message(
|
||||||
|
|
||||||
public bool IsReply { get; } = Kind == MessageKind.Reply;
|
public bool IsReply { get; } = Kind == MessageKind.Reply;
|
||||||
|
|
||||||
// A message is a forward if its reference type is Forward
|
|
||||||
public bool IsForward { get; } = Reference?.Kind == MessageReferenceKind.Forward;
|
|
||||||
|
|
||||||
// App interactions are rendered as replies in the Discord client, but they are not actually replies
|
// App interactions are rendered as replies in the Discord client, but they are not actually replies
|
||||||
public bool IsReplyLike => IsReply || Interaction is not null;
|
public bool IsReplyLike => IsReply || Interaction is not null;
|
||||||
|
|
||||||
|
// A message is a forward if its reference type is Forward
|
||||||
|
public bool IsForward { get; } = Reference?.Kind == MessageReferenceKind.Forward;
|
||||||
|
|
||||||
public bool IsEmpty { get; } =
|
public bool IsEmpty { get; } =
|
||||||
string.IsNullOrWhiteSpace(Content)
|
string.IsNullOrWhiteSpace(Content)
|
||||||
&& !Attachments.Any()
|
&& !Attachments.Any()
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@* Forwarded message content *@
|
@* Forwarded message content *@
|
||||||
@if (message.IsForward && message.ForwardedMessage is not null)
|
@if (message.IsForwarded && message.ForwardedMessage is not null)
|
||||||
{
|
{
|
||||||
var fwd = message.ForwardedMessage;
|
var fwd = message.ForwardedMessage;
|
||||||
<div class="chatlog__forwarded">
|
<div class="chatlog__forwarded">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue