Skip to content

Commit

Permalink
fix spoiler not applying in message edits
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Apr 7, 2024
1 parent f15c636 commit 1caf1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FMBot.Bot/Extensions/InteractionContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static async Task UpdateMessageEmbed(this IInteractionContext context, Re
m.Embed = response.Embed?.Build();
m.Attachments = response.Stream != null ? new Optional<IEnumerable<FileAttachment>>(new List<FileAttachment>
{
new(response.Stream, "image.png")
new(response.Stream, response.Spoiler ? $"SPOILER_{response.FileName}.png" : $"{response.FileName}.png")
}) : null;
});

Expand Down

0 comments on commit 1caf1e5

Please sign in to comment.