mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* Start of discord integration work * more testing * Discord client work * More discord work * Cleanup * Handle retry timer response and max retries * Update base retry timer * Move Discord queue handler to UCS, add queuer to own thread * Post merge * Send up Zone::SendDiscordMessage * Start of discord integration work * more testing * Discord client work * More discord work * Cleanup * Move Discord queue handler to UCS, add queuer to own thread * Post merge * Push up tables * Quest API stuff. * Update 2022_05_07_discord_webhooks.sql * Post merge fixes * Push up manifest * Flip logging signs in logic from copy / paste of inverse logic before * Make sure we add new line to quest api sourced messages Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
20 lines
403 B
C++
20 lines
403 B
C++
#ifndef EQEMU_DISCORD_MANAGER_H
|
|
#define EQEMU_DISCORD_MANAGER_H
|
|
|
|
#include <mutex>
|
|
#include <map>
|
|
#include <vector>
|
|
#include "../common/types.h"
|
|
|
|
class DiscordManager {
|
|
public:
|
|
void QueueWebhookMessage(uint32 webhook_id, const std::string& message);
|
|
void ProcessMessageQueue();
|
|
private:
|
|
std::mutex webhook_queue_lock{};
|
|
std::map<uint32, std::vector<std::string>> webhook_message_queue{};
|
|
};
|
|
|
|
|
|
#endif
|