Skip to content

ApourtArtt/DiscordWebhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordWebhook

Simple Discord's webhook integration. Coded in C++ and Qt. Two functions are available :

  • sendMsg(QString msg) : it prints a simple message on your pre-configured webhook.
  • sendFullMsg(QByteArray json) : it allows you to use every possibilities of Discord's webhook. I recommand reading this.

Webhook's messages are sent in another thread. If this need to be blocking, considerer changing

void sendMsg(QString msg)
{
    QFuture<void> f1 = QtConcurrent::run(printMsg, msg);
}

void sendFullMsg(QByteArray json)
{
    QFuture<void> f1 = QtConcurrent::run(printFullMsg, json);
}

to

void sendMsg(QString msg)
{
    printMsg(msg);
}

void sendFullMsg(QByteArray json)
{
    printFullMsg(json);
}

About

Discord's webhook integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors