mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
25 lines
540 B
C++
25 lines
540 B
C++
#pragma once
|
|
#include <optional>
|
|
#include "json.hpp"
|
|
#include "snowflake.hpp"
|
|
#include "user.hpp"
|
|
|
|
enum class WebhookType {
|
|
Incoming = 1,
|
|
ChannelFollower = 2,
|
|
};
|
|
|
|
struct WebhookData {
|
|
Snowflake ID;
|
|
WebhookType Type;
|
|
std::optional<Snowflake> GuildID;
|
|
Snowflake ChannelID;
|
|
std::optional<UserData> User;
|
|
std::string Name; // null
|
|
std::string Avatar; // null
|
|
std::optional<std::string> Token;
|
|
Snowflake ApplicationID; // null
|
|
|
|
friend void from_json(const nlohmann::json &j, WebhookData &m);
|
|
};
|