Render guild invites in HTML

Closes #649
This commit is contained in:
Tyrrrz
2023-02-14 21:22:07 +02:00
parent 8e5269f0ab
commit 191294b4fe
11 changed files with 184 additions and 14 deletions

View File

@@ -156,4 +156,19 @@ public class HtmlEmbedSpecs
message.QuerySelectorAll(".chatlog__embed").Should().ContainSingle();
}
[Fact]
public async Task Message_with_a_guild_invite_link_is_rendered_with_a_widget()
{
// https://github.com/Tyrrrz/DiscordChatExporter/issues/649
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(
ChannelIds.EmbedTestCases,
Snowflake.Parse("1075116548966064128")
);
// Assert
message.Text().Should().Contain("DiscordChatExporter TestServer");
}
}