Represents a role within a dpp::guild.
More...
#include <role.h>
Represents a role within a dpp::guild.
◆ role()
◆ ~role()
virtual dpp::role::~role |
( |
| ) |
|
|
virtual |
◆ build_json()
std::string dpp::role::build_json |
( |
bool |
with_id = false | ) |
const |
Build a json string from this object.
- Parameters
-
with_id | true if the ID is to be included in the json text |
- Returns
- The json of the role
◆ fill_from_json()
Fill this role from json.
- Parameters
-
guild_id | the guild id to place in the json |
j | The json data |
- Returns
- A reference to self
◆ has_add_reactions()
bool dpp::role::has_add_reactions |
( |
| ) |
const |
True if has the add reactions permission
◆ has_administrator()
bool dpp::role::has_administrator |
( |
| ) |
const |
True if has the administrator permission
◆ has_attach_files()
bool dpp::role::has_attach_files |
( |
| ) |
const |
True if has the attach files permission
◆ has_ban_members()
bool dpp::role::has_ban_members |
( |
| ) |
const |
True if has the ban members permission
◆ has_change_nickname()
bool dpp::role::has_change_nickname |
( |
| ) |
const |
True if has the change nickname permission
◆ has_connect()
bool dpp::role::has_connect |
( |
| ) |
const |
True if has the connect voice permission
◆ has_create_instant_invite()
bool dpp::role::has_create_instant_invite |
( |
| ) |
const |
True if has create instant invite permission
◆ has_create_private_threads()
bool dpp::role::has_create_private_threads |
( |
| ) |
const |
True if has the create private threads permission
◆ has_create_public_threads()
bool dpp::role::has_create_public_threads |
( |
| ) |
const |
True if has the create public threads permission
◆ has_deafen_members()
bool dpp::role::has_deafen_members |
( |
| ) |
const |
True if has the deafen members permission
◆ has_embed_links()
bool dpp::role::has_embed_links |
( |
| ) |
const |
True if has the embed links permission
◆ has_kick_members()
bool dpp::role::has_kick_members |
( |
| ) |
const |
True if has the kick members permission
◆ has_manage_channels()
bool dpp::role::has_manage_channels |
( |
| ) |
const |
True if has the manage channels permission
◆ has_manage_emojis_and_stickers()
bool dpp::role::has_manage_emojis_and_stickers |
( |
| ) |
const |
True if has the manage emojis and stickers permission
◆ has_manage_guild()
bool dpp::role::has_manage_guild |
( |
| ) |
const |
True if has the manage guild permission
◆ has_manage_messages()
bool dpp::role::has_manage_messages |
( |
| ) |
const |
True if has the manage messages permission
◆ has_manage_nicknames()
bool dpp::role::has_manage_nicknames |
( |
| ) |
const |
True if has the manage nicknames permission
◆ has_manage_roles()
bool dpp::role::has_manage_roles |
( |
| ) |
const |
True if has the manage roles permission
◆ has_manage_threads()
bool dpp::role::has_manage_threads |
( |
| ) |
const |
True if has the manage threads permission
◆ has_manage_webhooks()
bool dpp::role::has_manage_webhooks |
( |
| ) |
const |
True if has the manage webhooks permission
◆ has_mention_everyone()
bool dpp::role::has_mention_everyone |
( |
| ) |
const |
True if has the mention @everyone and @here permission
◆ has_move_members()
bool dpp::role::has_move_members |
( |
| ) |
const |
True if has the move members permission
◆ has_mute_members()
bool dpp::role::has_mute_members |
( |
| ) |
const |
True if has the mute members permission
◆ has_priority_speaker()
bool dpp::role::has_priority_speaker |
( |
| ) |
const |
True if has the priority speaker permission
◆ has_read_message_history()
bool dpp::role::has_read_message_history |
( |
| ) |
const |
True if has the read message history permission
◆ has_request_to_speak()
bool dpp::role::has_request_to_speak |
( |
| ) |
const |
True if has the request to speak permission
◆ has_send_messages()
bool dpp::role::has_send_messages |
( |
| ) |
const |
True if has the send messages permission
◆ has_send_messages_in_threads()
bool dpp::role::has_send_messages_in_threads |
( |
| ) |
const |
True if has the send messages in threads permission
◆ has_send_tts_messages()
bool dpp::role::has_send_tts_messages |
( |
| ) |
const |
True if has the send TTS messages permission
◆ has_speak()
bool dpp::role::has_speak |
( |
| ) |
const |
True if has the speak permission
◆ has_start_embedded_activities()
bool dpp::role::has_start_embedded_activities |
( |
| ) |
const |
True if has the start embedded activities permission
◆ has_stream()
bool dpp::role::has_stream |
( |
| ) |
const |
True if has the stream permission
◆ has_use_application_commands()
bool dpp::role::has_use_application_commands |
( |
| ) |
const |
True if has the use application commands permission
◆ has_use_external_emojis()
bool dpp::role::has_use_external_emojis |
( |
| ) |
const |
True if has the use external emojis permission
◆ has_use_external_stickers()
bool dpp::role::has_use_external_stickers |
( |
| ) |
const |
True if has the use external stickers permission
◆ has_use_vad()
bool dpp::role::has_use_vad |
( |
| ) |
const |
True if has use voice activity detection permission
◆ has_view_audit_log()
bool dpp::role::has_view_audit_log |
( |
| ) |
const |
True if has the view audit log permission
◆ has_view_channel()
bool dpp::role::has_view_channel |
( |
| ) |
const |
True if has the view channel permission
◆ has_view_guild_insights()
bool dpp::role::has_view_guild_insights |
( |
| ) |
const |
True if has the view guild insights permission
◆ is_hoisted()
bool dpp::role::is_hoisted |
( |
| ) |
const |
True if the role is hoisted
◆ is_managed()
bool dpp::role::is_managed |
( |
| ) |
const |
True if the role is managed (belongs to a bot or application)
◆ is_mentionable()
bool dpp::role::is_mentionable |
( |
| ) |
const |
True if the role is mentionable
◆ bot_id
Bot id if any (e.g. role is a bot's role created when it was invited)
◆ colour
uint32_t dpp::role::colour |
◆ flags
◆ guild_id
◆ id
◆ integration_id
Integration id if any (e.g. role is a bot's role created when it was invited)
◆ name
std::string dpp::role::name |
◆ permissions
uint64_t dpp::role::permissions |
◆ position
uint8_t dpp::role::position |