DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
discord_core_api::channels::createDMChannelAsync()
(which collects it from the discord servers)function, while passing to it a data structure of type discord_core_api::create_dmchannel_data
, or simply discord_core_api::{ .userId = targetuseridhere}
, with a return value of auto
or discord_core_api:channel
.discord_core_api::co_routine::get()
added to the end in order to wait for the results now.