summaryrefslogtreecommitdiff
path: root/discord/role.hpp
blob: 79f1038ac0b43ba418f85c253061792d425cffd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "snowflake.hpp"
#include "json.hpp"
#include <string>
#include <cstdint>

struct Role {
    Snowflake ID;
    std::string Name;
    int Color;
    bool IsHoisted;
    int Position;
    int PermissionsLegacy;
    uint64_t Permissions;
    bool IsManaged;
    bool IsMentionable;

    friend void from_json(const nlohmann::json &j, Role &m);
};