Skip to content

Add support for has:invite filter that matches messages with guild … #702

Add support for has:invite filter that matches messages with guild …

Add support for has:invite filter that matches messages with guild … #702

Triggered via push January 18, 2024 18:24
Status Failure
Total duration 5m 38s
Artifacts 2

main.yml

on: push
Matrix: pack
release
0s
release
Matrix: deploy
Fit to window
Zoom out
Zoom in

Annotations

4 errors
I can export a channel that contains a message with a guild invite: DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs#L235
Expected message.Text() "Tyrrrz 2/14/2023 6:09 PMDiscord server invite embed https://discord.gg/eRV8Vap5bm (edited)Invite to join a server DiscordChatExporter Test Server general" to contain "DiscordChatExporter TestServer".
I can filter the export to only include messages that contain guild invites: DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs#L97
Expected Json.Parse(File.ReadAllTextAsync(file.Path)).GetProperty("messages").EnumerateArray().Select(j => j.GetProperty("content").GetString())[0] to be "This has invite" with a length of 15, but "This has invite https://discord.gg/2SUWKFnHSm" has a length of 45, differs near " ht" (index 15). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Be strict about the order of collections when IsNullOrEmpty(s.Path) - Without automatic conversion.
I can filter the export to only include messages that contain the specified mention: DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs#L147
Expected Json.Parse(File.ReadAllTextAsync(file.Path)).GetProperty("messages").EnumerateArray().Select(j => j.GetProperty("content").GetString())[0] to be "This has mention" with a length of 16, but "This has mention @Tyrrrz" has a length of 24, differs near " @t" (index 16). With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Be strict about the order of collections when IsNullOrEmpty(s.Path) - Without automatic conversion.
test
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
DiscordChatExporter.Cli Expired
3.99 MB
DiscordChatExporter.Gui Expired
13.2 MB