D++ (DPP)
C++ Discord API Bot Library
|
Represents a role within a dpp::guild. More...
#include <role.h>
Public Attributes | |
std::string | name |
snowflake | guild_id |
uint32_t | colour |
uint8_t | position |
uint32_t | permissions |
uint8_t | flags |
snowflake | integration_id |
snowflake | bot_id |
snowflake | id |
Represents a role within a dpp::guild.
dpp::role::role | ( | ) |
Default constructor
dpp::role::~role | ( | ) |
Default destructor
std::string dpp::role::build_json | ( | bool | with_id = false | ) | const |
Build a json string from this object.
with_id | true if the ID is to be included in the json text |
role & dpp::role::fill_from_json | ( | snowflake | guild_id, |
nlohmann::json * | j | ||
) |
Fill this role from json.
guild_id | the guild id to place in the json |
j | The json data |
bool dpp::role::has_add_reactions | ( | ) | const |
True if has the add reactions permission
bool dpp::role::has_administrator | ( | ) | const |
True if has the administrator permission
bool dpp::role::has_attach_files | ( | ) | const |
True if has the attach files permission
bool dpp::role::has_ban_members | ( | ) | const |
True if has the ban members permission
bool dpp::role::has_change_nickname | ( | ) | const |
True if has the change nickname permission
bool dpp::role::has_connect | ( | ) | const |
True if has the connect voice permission
bool dpp::role::has_create_instant_invite | ( | ) | const |
True if has create instant invite permission
bool dpp::role::has_deafen_members | ( | ) | const |
True if has the deafen members permission
bool dpp::role::has_embed_links | ( | ) | const |
True if has the embed links permission
bool dpp::role::has_kick_members | ( | ) | const |
True if has the kick members permission
bool dpp::role::has_manage_channels | ( | ) | const |
True if has the manage channels permission
bool dpp::role::has_manage_emojis | ( | ) | const |
True if has the manage emojis permission
bool dpp::role::has_manage_guild | ( | ) | const |
True if has the manage guild permission
bool dpp::role::has_manage_messages | ( | ) | const |
True if has the manage messages permission
bool dpp::role::has_manage_nicknames | ( | ) | const |
True if has the manage nicknames permission
bool dpp::role::has_manage_roles | ( | ) | const |
True if has the manage roles permission
bool dpp::role::has_manage_webhooks | ( | ) | const |
True if has the manage webhooks permission
bool dpp::role::has_mention_everyone | ( | ) | const |
True if has the mention @everyone and @here permission
bool dpp::role::has_move_members | ( | ) | const |
True if has the move members permission
bool dpp::role::has_mute_members | ( | ) | const |
True if has the mute members permission
bool dpp::role::has_priority_speaker | ( | ) | const |
True if has the priority speaker permission
bool dpp::role::has_read_message_history | ( | ) | const |
True if has the read message history permission
bool dpp::role::has_send_messages | ( | ) | const |
True if has the send messages permission
bool dpp::role::has_send_tts_messages | ( | ) | const |
True if has the send TTS messages permission
bool dpp::role::has_speak | ( | ) | const |
True if has the speak permission
bool dpp::role::has_stream | ( | ) | const |
True if has the stream permission
bool dpp::role::has_use_external_emojis | ( | ) | const |
True if has the use external emojis permission
bool dpp::role::has_use_vad | ( | ) | const |
True if has use voice activity detection permission
bool dpp::role::has_view_audit_log | ( | ) | const |
True if has the view audit log permission
bool dpp::role::has_view_channel | ( | ) | const |
True if has the view channel permission
bool dpp::role::has_view_guild_insights | ( | ) | const |
True if has the view guild insights permission
bool dpp::role::is_hoisted | ( | ) | const |
True if the role is hoisted
bool dpp::role::is_managed | ( | ) | const |
True if the role is managed (belongs to a bot or application)
bool dpp::role::is_mentionable | ( | ) | const |
True if the role is mentionable
snowflake dpp::role::bot_id |
Bot id if any (e.g. role is a bot's role created when it was invited)
uint32_t dpp::role::colour |
Role colour
uint8_t dpp::role::flags |
Role flags from dpp::role_flags
snowflake dpp::role::guild_id |
Guild id
|
inherited |
Unique ID of object
snowflake dpp::role::integration_id |
Integration id if any (e.g. role is a bot's role created when it was invited)
std::string dpp::role::name |
Role name
uint32_t dpp::role::permissions |
Role permissions bitmask values from dpp::role_permissions
uint8_t dpp::role::position |
Role position