add file upload via dnd + rework http

This commit is contained in:
ouwou
2022-06-17 02:46:55 -04:00
parent d0fa308f6e
commit 4ee7025ab0
11 changed files with 146 additions and 33 deletions

View File

@@ -746,7 +746,7 @@ void Abaddon::ActionChatLoadHistory(Snowflake id) {
static void ChatMessageSentCallback(const ChatSubmitParams &data) {
printf("completed for %s\n", data.Message.c_str());
for (const auto &attachment : data.Attachments) {
puts(attachment.Path.c_str());
puts(attachment.File->get_path().c_str());
}
}