mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
15 lines
369 B
C++
15 lines
369 B
C++
#include "invite.hpp"
|
|
|
|
void from_json(const nlohmann::json &j, Invite &m) {
|
|
JS_D("code", m.Code);
|
|
JS_O("channel", m.Channel);
|
|
JS_O("inviter", m.Inviter);
|
|
JS_O("approximate_member_count", m.Members);
|
|
|
|
if (j.contains("guild")) {
|
|
auto x = j.at("guild");
|
|
x.at("id").get_to(m.Guild.ID);
|
|
x.at("name").get_to(m.Guild.Name);
|
|
}
|
|
}
|