diff --git a/DiscordChatExporter.Core/Discord/Data/Interaction.cs b/DiscordChatExporter.Core/Discord/Data/Interaction.cs index bb9322de..3a020d40 100644 --- a/DiscordChatExporter.Core/Discord/Data/Interaction.cs +++ b/DiscordChatExporter.Core/Discord/Data/Interaction.cs @@ -10,7 +10,7 @@ public record Interaction(Snowflake Id, string Name, User User) public static Interaction Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); - var name = json.GetProperty("name").GetNonWhiteSpaceString(); + var name = json.GetProperty("name").GetNonNullString(); // may be empty, but not null var user = json.GetProperty("user").Pipe(User.Parse); return new Interaction(id, name, user);