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

A scheduled event. More...

#include <scheduled_event.h>

+ Collaboration diagram for dpp::scheduled_event:

Public Member Functions

 scheduled_event ()
 Create a scheduled_event object. More...
 
 ~scheduled_event ()=default
 Destroy the scheduled_event object. More...
 
scheduled_eventfill_from_json (const nlohmann::json *j)
 Serialise a scheduled_event object from json. More...
 
std::string const build_json (bool with_id=false) const
 Build json for this object. More...
 

Public Attributes

snowflake id
 the id of the scheduled event More...
 
snowflake guild_id
 the guild id which the scheduled event belongs to More...
 
snowflake channel_id
 the channel id in which the scheduled event will be hosted, or null if scheduled entity type is EXTERNAL (may be empty) More...
 
snowflake creator_id
 Optional: the id of the user that created the scheduled event. More...
 
std::string name
 the name of the scheduled event More...
 
std::string description
 Optional: the description of the scheduled event. More...
 
std::string image
 the image of the scheduled event (may be empty) More...
 
time_t scheduled_start_time
 the time the scheduled event will start More...
 
time_t scheduled_end_time
 the time the scheduled event will end, or null if the event does not have a scheduled time to end (may be empty) More...
 
event_privacy_level privacy_level
 the privacy level of the scheduled event More...
 
event_status status
 the status of the scheduled event More...
 
event_entity_type entity_type
 the type of hosting entity associated with a scheduled event, e.g. voice channel or stage channel More...
 
snowflake entity_id
 any additional id of the hosting entity associated with event, e.g. stage instance id) (may be empty) More...
 
event_entities entity_metadata
 the entity metadata for the scheduled event (may be empty) More...
 
user creator
 Optional: the creator of the scheduled event. More...
 
uint32_t user_count
 Optional: the number of users subscribed to the scheduled event. More...
 

Detailed Description

A scheduled event.

Constructor & Destructor Documentation

◆ scheduled_event()

dpp::scheduled_event::scheduled_event ( )

Create a scheduled_event object.

◆ ~scheduled_event()

dpp::scheduled_event::~scheduled_event ( )
default

Destroy the scheduled_event object.

Member Function Documentation

◆ build_json()

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

Build json for this object.

Parameters
with_idInclude id field in json
Returns
std::string Dumped json of this object

◆ fill_from_json()

scheduled_event & dpp::scheduled_event::fill_from_json ( const nlohmann::json j)

Serialise a scheduled_event object from json.

Returns
scheduled_event& a reference to self

Member Data Documentation

◆ channel_id

snowflake dpp::scheduled_event::channel_id

the channel id in which the scheduled event will be hosted, or null if scheduled entity type is EXTERNAL (may be empty)

◆ creator

user dpp::scheduled_event::creator

Optional: the creator of the scheduled event.

◆ creator_id

snowflake dpp::scheduled_event::creator_id

Optional: the id of the user that created the scheduled event.

◆ description

std::string dpp::scheduled_event::description

Optional: the description of the scheduled event.

◆ entity_id

snowflake dpp::scheduled_event::entity_id

any additional id of the hosting entity associated with event, e.g. stage instance id) (may be empty)

◆ entity_metadata

event_entities dpp::scheduled_event::entity_metadata

the entity metadata for the scheduled event (may be empty)

◆ entity_type

event_entity_type dpp::scheduled_event::entity_type

the type of hosting entity associated with a scheduled event, e.g. voice channel or stage channel

◆ guild_id

snowflake dpp::scheduled_event::guild_id

the guild id which the scheduled event belongs to

◆ id

snowflake dpp::scheduled_event::id

the id of the scheduled event

◆ image

std::string dpp::scheduled_event::image

the image of the scheduled event (may be empty)

◆ name

std::string dpp::scheduled_event::name

the name of the scheduled event

◆ privacy_level

event_privacy_level dpp::scheduled_event::privacy_level

the privacy level of the scheduled event

◆ scheduled_end_time

time_t dpp::scheduled_event::scheduled_end_time

the time the scheduled event will end, or null if the event does not have a scheduled time to end (may be empty)

◆ scheduled_start_time

time_t dpp::scheduled_event::scheduled_start_time

the time the scheduled event will start

◆ status

event_status dpp::scheduled_event::status

the status of the scheduled event

◆ user_count

uint32_t dpp::scheduled_event::user_count

Optional: the number of users subscribed to the scheduled event.

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