Skip to content

Commit da4834d

Browse files
committed
Fix build.
1 parent cfdbf3c commit da4834d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SerialPrograms/Source/Integrations/DiscordWebhook.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ void DiscordWebhookSender::send(
8989
throttle();
9090
std::vector<DiscordFileAttachment> attachments;
9191
for (auto& file : files){
92-
attachments.emplace_back(file->filename(), file->filepath());
92+
attachments.emplace_back(
93+
DiscordFileAttachment{file->filename(), file->filepath()}
94+
);
9395
}
9496
internal_send(url, *json, attachments);
9597
}

0 commit comments

Comments
 (0)