Add support for replies to app interactions

Closes #569
This commit is contained in:
Tyrrrz
2023-02-16 01:50:24 +02:00
parent 6620c6299c
commit d9a78d8e27
6 changed files with 158 additions and 120 deletions

View File

@@ -56,4 +56,19 @@ public class HtmlReplySpecs
message.Text().Should().Contain("reply to attachment");
message.QuerySelector(".chatlog__reply-link")?.Text().Should().Contain("Click to see attachment");
}
[Fact]
public async Task Message_with_a_reply_to_an_interaction_is_rendered_correctly()
{
// https://github.com/Tyrrrz/DiscordChatExporter/issues/569
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(
ChannelIds.ReplyTestCases,
Snowflake.Parse("1075152916417085492")
);
// Assert
message.Text().Should().Contain("used /poll");
}
}