add mention/emoji/channel completion

This commit is contained in:
ouwou
2020-12-20 22:10:45 -05:00
parent c02cfb9dd8
commit 31bef80530
12 changed files with 491 additions and 7 deletions

View File

@@ -13,6 +13,10 @@ Snowflake User::GetHoistedRole(Snowflake guild_id, bool with_color) const {
return Abaddon::Get().GetDiscordClient().GetMemberHoistedRole(guild_id, ID, with_color);
}
std::string User::GetMention() const {
return "<@" + std::to_string(ID) + ">";
}
void from_json(const nlohmann::json &j, User &m) {
JS_D("id", m.ID);
JS_D("username", m.Username);