aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | Friends | List of all members
aegis::gateway::objects::user Struct Reference

#include <user.hpp>

Public Member Functions

bool is_bot () const noexcept
 Returns whether user is a bot. More...
 
void is_bot (bool isbot) noexcept
 Set user bot flag. More...
 
bool is_webhook () const noexcept
 Returns whether user is a webhook. More...
 

Public Attributes

snowflake id
 
snowflake guild_id
 
std::string username
 
std::string discriminator
 
std::string avatar
 

Friends

void from_json (const nlohmann::json &j, user &m)
 
void to_json (nlohmann::json &j, const user &m)
 

Detailed Description

Todo:
Needs documentation

Member Function Documentation

bool aegis::gateway::objects::user::is_bot ( ) const
noexcept

Returns whether user is a bot.

Returns
true if user is a bot
void aegis::gateway::objects::user::is_bot ( bool  isbot)
noexcept

Set user bot flag.

Parameters
isbottrue if user is a bot
bool aegis::gateway::objects::user::is_webhook ( ) const
noexcept

Returns whether user is a webhook.

Returns
true if user is a webhook

Member Data Documentation

std::string aegis::gateway::objects::user::avatar

Hash of user's avatar

std::string aegis::gateway::objects::user::discriminator

discriminator of user

snowflake aegis::gateway::objects::user::guild_id

snowflake of guild of the event this user is attached to

snowflake aegis::gateway::objects::user::id

snowflake of user

std::string aegis::gateway::objects::user::username

username of user


The documentation for this struct was generated from the following file: