Skip to content

Commit cfdbf3c

Browse files
committed
Fix build.
1 parent f4c806c commit cfdbf3c

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
@@ -66,7 +66,9 @@ void DiscordWebhookSender::send(
6666
throttle();
6767
std::vector<DiscordFileAttachment> attachments;
6868
if (file){
69-
attachments.emplace_back(file->filename(), file->filepath());
69+
attachments.emplace_back(
70+
DiscordFileAttachment{file->filename(), file->filepath()}
71+
);
7072
}
7173
internal_send(url, *json, attachments);
7274
}

0 commit comments

Comments
 (0)