From 4456c8771da668cbadb411583624fe0e357fa687 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 14 Jun 2022 02:36:04 -0400 Subject: refactor send message params into one struct --- src/discord/chatsubmitparams.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/discord/chatsubmitparams.hpp (limited to 'src/discord/chatsubmitparams.hpp') 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 +#include +#include +#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 Attachments; +}; -- cgit v1.2.3