summaryrefslogtreecommitdiff
path: root/src/discord/chatsubmitparams.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-06-14 02:36:04 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-06-14 02:36:04 -0400
commit4456c8771da668cbadb411583624fe0e357fa687 (patch)
tree789e2d73e6f0994b314b8e18c9cb8209562666e2 /src/discord/chatsubmitparams.hpp
parentcaa551a4693c7c7ef475be515b31eb025bc7df96 (diff)
downloadabaddon-portaudio-4456c8771da668cbadb411583624fe0e357fa687.tar.gz
abaddon-portaudio-4456c8771da668cbadb411583624fe0e357fa687.zip
refactor send message params into one struct
Diffstat (limited to 'src/discord/chatsubmitparams.hpp')
-rw-r--r--src/discord/chatsubmitparams.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/discord/chatsubmitparams.hpp b/src/discord/chatsubmitparams.hpp
new file mode 100644
index 0000000..0f0a0cd
--- /dev/null
+++ b/src/discord/chatsubmitparams.hpp
@@ -0,0 +1,22 @@
+#pragma once
+#include <vector>
+#include <string>
+#include <glibmm/ustring.h>
+#include "discord/snowflake.hpp"
+
+struct ChatSubmitParams {
+ enum AttachmentType {
+ PastedImage,
+ ExtantFile,
+ };
+
+ struct Attachment {
+ std::string Path;
+ AttachmentType Type;
+ };
+
+ Snowflake ChannelID;
+ Snowflake InReplyToID;
+ Glib::ustring Message;
+ std::vector<Attachment> Attachments;
+};