Discord.C++ 0.13.0
|
#include <GuildChannel.h>
Public Member Functions | |
GuildChannel (const json &data, const std::string &token) | |
GuildChannel (const std::string &id, const std::string &token) | |
GuildChannel ()=default | |
std::optional< Guild > | get_guild () |
std::optional< Channel > | get_parent () |
![]() | |
TextChannel (const json &data, const std::string &token) | |
TextChannel (const std::string &id, const std::string &token) | |
TextChannel (const std::string &token) | |
TextChannel ()=default | |
Message | send (const std::string &content, const bool tts=false) |
Send a Message to this channel. | |
Message | send (Embed embed) |
Send an Embed to this channel. | |
std::vector< std::shared_ptr< Message > > | history (const int limit=100, const std::string &before="", const std::string &after="", const std::string &around="") |
Get messages from channel history. | |
void | delete_messages (const std::vector< std::shared_ptr< Message > > &messages) |
Delete multiple messages from this channel. | |
std::string | get_topic () |
bool | is_nsfw () |
std::string | get_last_message_id () |
std::string | get_last_pin_timestamp () |
int | get_rate_limit_per_user () |
void | _set_last_message_id (std::string message_id) |
void | _set_last_pin_timestamp (std::string timestamp) |
![]() | |
Channel (const json &data, const std::string &token) | |
Channel (const std::string &id, const std::string &token) | |
Channel (const std::string &token) | |
Channel ()=default | |
void | delete_channel () |
Delete this channel. | |
operator std::string () | |
Type | get_type () |
int32_t | get_position () |
std::string | get_name () |
std::string | get_icon () |
![]() | |
DiscordObject ()=default | |
DiscordObject (std::string token) | |
DiscordObject (std::string token, std::string id) | |
std::string | get_id () const |
Additional Inherited Members | |
![]() | |
enum | Type { GUILD_TEXT = 0 , DM = 1 , GUILD_VOICE = 2 , GROUP_DM = 3 , GUILD_CATEGORY = 4 , GUILD_NEWS = 5 , GUILD_NEWS_THREAD = 10 , GUILD_PUBLIC_THREAD = 11 , GUILD_PRIVATE_THREAD = 12 , GUILD_STAGE_VOICE = 13 , GUILD_DIRECTORY = 14 , GUILD_FORUM = 15 } |
![]() | |
std::string | get_token () const |
json | api_call (const std::string &url, const std::string &method="GET", const json &data=json(), const std::string &content_type="", const bool cache=true) |
helper function to communicate with the http api | |
DiscordCPP::GuildChannel::GuildChannel | ( | const json & | data, |
const std::string & | token ) |
DiscordCPP::GuildChannel::GuildChannel | ( | const std::string & | id, |
const std::string & | token ) |
|
default |
std::optional< DiscordCPP::Guild > DiscordCPP::GuildChannel::get_guild | ( | ) |
std::optional< DiscordCPP::Channel > DiscordCPP::GuildChannel::get_parent | ( | ) |