D++ (DPP)  10.0.30
C++ Discord API Bot Library
channel.h File Reference
#include <dpp/export.h>
#include <dpp/snowflake.h>
#include <dpp/managed.h>
#include <dpp/utility.h>
#include <dpp/voicestate.h>
#include <dpp/json_fwd.h>
#include <dpp/permissions.h>
#include <dpp/json_interface.h>
#include <unordered_map>
#include <variant>
Include dependency graph for channel.h:
This graph shows which files directly or indirectly include this file:

Classes

class  dpp::channel
 A definition of a discord channel. More...
 
struct  dpp::forum_tag
 Represents a tag that is able to be applied to a thread in a forum or media channel. More...
 
struct  dpp::permission_overwrite
 Channel permission overwrites. More...
 

Namespaces

 dpp
 The main namespace for D++ functions.
 

Typedefs

typedef std::unordered_map< snowflake, channel > dpp::channel_map
 A group of channels. More...
 

Enumerations

enum  dpp::auto_archive_duration_t : uint8_t {
  dpp::arc_1_hour = 1,
  dpp::arc_1_day = 2,
  dpp::arc_3_days = 3,
  dpp::arc_1_week = 4
}
 Auto archive duration of threads which will stop showing in the channel list after the specified period of inactivity. More...
 
enum  dpp::channel_flags : uint16_t {
  dpp::c_nsfw = 0b0000000000010000,
  dpp::c_video_quality_720p = 0b0000000000100000,
  dpp::c_lock_permissions = 0b0000000001000000,
  dpp::c_pinned_thread = 0b0000000010000000,
  dpp::c_require_tag = 0b0000000100000000,
  dpp::c_hide_media_download_options = 0b0001000000000000
}
 Our flags as stored in the object. More...
 
enum  dpp::channel_type : uint8_t {
  dpp::CHANNEL_TEXT = 0,
  dpp::DM = 1,
  dpp::CHANNEL_VOICE = 2,
  dpp::GROUP_DM = 3,
  dpp::CHANNEL_CATEGORY = 4,
  dpp::CHANNEL_ANNOUNCEMENT = 5,
  dpp::CHANNEL_STORE = 6,
  dpp::CHANNEL_ANNOUNCEMENT_THREAD = 10,
  dpp::CHANNEL_PUBLIC_THREAD = 11,
  dpp::CHANNEL_PRIVATE_THREAD = 12,
  dpp::CHANNEL_STAGE = 13,
  dpp::CHANNEL_DIRECTORY = 14,
  dpp::CHANNEL_FORUM = 15,
  dpp::CHANNEL_MEDIA = 16
}
 Flag integers as received from and sent to discord. More...
 
enum  dpp::default_forum_sort_order_t : uint8_t {
  dpp::so_latest_activity = 0,
  dpp::so_creation_date = 1
}
 Types for sort posts in a forum channel. More...
 
enum  dpp::forum_layout_type : uint8_t {
  dpp::fl_not_set = 0,
  dpp::fl_list_view = 1,
  dpp::fl_gallery_view = 2
}
 Types of forum layout views that indicates how the threads in a forum channel will be displayed for users by default. More...
 
enum  dpp::overwrite_type : uint8_t {
  dpp::ot_role = 0,
  dpp::ot_member = 1
}
 channel permission overwrite types More...
 

Functions

void dpp::to_json (nlohmann::json &j, const permission_overwrite &po)
 Serialize a permission_overwrite object to json. More...