admin管理员组文章数量:1289866
#include "CDiscord.h"
using namespace std;
static int64_t eptime = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
void Start()
{
DiscordEventHandlers Handle;
memset(&Handle, 0, sizeof(Handle));
Discord_Initialize("1334300888808702279", &Handle, 1, NULL);
DiscordRichPresence discordPresence;
memset(&discordPresence, 0, sizeof(discordPresence));
discordPresence.details = "Game Link: scorpion.ppp";
discordPresence.state = "Classic Server";
discordPresence.startTimestamp = eptime;
discordPresence.largeImageKey = "1334300888808702279";// large img
discordPresence.largeImageText = "SCORPIONS"; // txt large img
//discordPresence.smallImageKey = "8080"; // small img
//discordPresence.smallImageText = "scorpion"; // txt small img
Discord_UpdatePresence(&discordPresence);
}
void CDiscord::Shutdown()
{
Discord_Shutdown();
}
void CDiscord::Init()
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Start, NULL, NULL, NULL);
}
I'm asking for buttons like these:
Example from a picture
I have an example through the following image, my friends. How can I add a Discord follow button and a button to enter the game’s web page through this proposed code ?
本文标签: c17How to create buttons on discord RPC using CStack Overflow
版权声明:本文标题:c++17 - How to create buttons on discord RPC using C++? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741412468a2377317.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论