D++ (DPP)
C++ Discord API Bot Library
dpp::onboarding Struct Reference

Represents a guild's onboarding flow. More...

#include <guild.h>

+ Inheritance diagram for dpp::onboarding:
+ Collaboration diagram for dpp::onboarding:

Public Member Functions

 onboarding ()
 Construct a new onboarding object. More...
 
virtual ~onboarding ()=default
 Destroy the onboarding object. More...
 
onboardingfill_from_json (nlohmann::json *j)
 Read class values from json object. More...
 
std::string build_json (bool with_id=false) const
 Build the json for this object. More...
 
onboardingset_guild_id (const snowflake id)
 Set guild_id of this onboarding object. More...
 
onboardingset_mode (const onboarding_mode m)
 Set the mode of this onboarding object. More...
 
onboardingset_enabled (const bool is_enabled)
 Set the enabling of this onboarding object. More...
 

Public Attributes

snowflake guild_id
 ID of the guild this onboarding is part of. More...
 
std::vector< onboarding_promptprompts
 Prompts shown during onboarding and in customize community. More...
 
std::vector< snowflakedefault_channel_ids
 Channel IDs that members get opted into automatically. More...
 
onboarding_mode mode
 Current mode of onboarding (defaults to dpp::gom_default) More...
 
bool enabled
 Whether onboarding is enabled in the guild. More...
 

Detailed Description

Represents a guild's onboarding flow.

Constructor & Destructor Documentation

◆ onboarding()

dpp::onboarding::onboarding ( )

Construct a new onboarding object.

◆ ~onboarding()

virtual dpp::onboarding::~onboarding ( )
virtualdefault

Destroy the onboarding object.

Member Function Documentation

◆ build_json()

std::string dpp::onboarding::build_json ( bool  with_id = false) const
virtual

Build the json for this object.

Parameters
with_idinclude the id in the JSON
Returns
std::string json data

Reimplemented from dpp::json_interface< onboarding >.

◆ fill_from_json()

onboarding & dpp::onboarding::fill_from_json ( nlohmann::json *  j)

Read class values from json object.

Parameters
jA json object to read from
Returns
A reference to self

◆ set_enabled()

onboarding & dpp::onboarding::set_enabled ( const bool  is_enabled)

Set the enabling of this onboarding object.

Parameters
is_enabledbool Whether onboarding is enabled in the guild
Returns
Reference to self, so these method calls may be chained

◆ set_guild_id()

onboarding & dpp::onboarding::set_guild_id ( const snowflake  id)

Set guild_id of this onboarding object.

Parameters
guild_idGuild ID to set
Returns
Reference to self, so these method calls may be chained

◆ set_mode()

onboarding & dpp::onboarding::set_mode ( const onboarding_mode  m)

Set the mode of this onboarding object.

Parameters
monboarding_mode Mode to set
Returns
Reference to self, so these method calls may be chained

Member Data Documentation

◆ default_channel_ids

std::vector<snowflake> dpp::onboarding::default_channel_ids

Channel IDs that members get opted into automatically.

◆ enabled

bool dpp::onboarding::enabled

Whether onboarding is enabled in the guild.

◆ guild_id

snowflake dpp::onboarding::guild_id

ID of the guild this onboarding is part of.

◆ mode

onboarding_mode dpp::onboarding::mode

Current mode of onboarding (defaults to dpp::gom_default)

◆ prompts

std::vector<onboarding_prompt> dpp::onboarding::prompts

Prompts shown during onboarding and in customize community.

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0