summaryrefslogtreecommitdiff
path: root/src/discord/chatsubmitparams.hpp
blob: e195189d01c9501cde095db92a8dac67e9c2ace6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include <vector>
#include <string>
#include <glibmm/ustring.h>
#include <giomm/file.h>
#include "discord/snowflake.hpp"

struct ChatSubmitParams {
    enum AttachmentType {
        PastedImage,
        ExtantFile,
    };

    struct Attachment {
        Glib::RefPtr<Gio::File> File;
        AttachmentType Type;
        std::string Filename;
    };

    bool Silent = false;
    Snowflake ChannelID;
    Snowflake InReplyToID;
    Snowflake EditingID;
    Glib::ustring Message;
    std::vector<Attachment> Attachments;
};