Skip to content

Commit 8a3b7bf

Browse files
committed
Changed Attachment.IsAppUnfurl to a nullable bool
Resolves #249
1 parent 6f56f8d commit 8a3b7bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SlackNet/Interaction/AttachmentUpdateResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class AttachmentUpdateResponse : IReadOnlyAttachment
4949
public DateTime? Timestamp => Attachment.Timestamp;
5050
public string ServiceName => Attachment.ServiceName;
5151
public string ServiceIcon => Attachment.ServiceIcon;
52-
public bool IsAppUnfurl => Attachment.IsAppUnfurl;
52+
public bool? IsAppUnfurl => Attachment.IsAppUnfurl;
5353
public string AppUnfurlUrl => Attachment.AppUnfurlUrl;
5454
public string BotId => Attachment.BotId;
5555
public string BotTeamId => Attachment.BotTeamId;

SlackNet/Objects/Attachment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public interface IReadOnlyAttachment
4343
DateTime? Timestamp { get; }
4444
string ServiceName { get; }
4545
string ServiceIcon { get; }
46-
bool IsAppUnfurl { get; }
46+
bool? IsAppUnfurl { get; }
4747
string AppUnfurlUrl { get; }
4848
string BotId { get; }
4949
string BotTeamId { get; }
@@ -94,7 +94,7 @@ public class Attachment : IReadOnlyAttachment
9494
public bool? IsMsgUnfurl { get; set; }
9595
public string ServiceName { get; set; }
9696
public string ServiceIcon { get; set; }
97-
public bool IsAppUnfurl { get; set; }
97+
public bool? IsAppUnfurl { get; set; }
9898
public string AppUnfurlUrl { get; set; }
9999
public string BotId { get; set; }
100100
public string BotTeamId { get; set; }

0 commit comments

Comments
 (0)