mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 23:08:21 +00:00
[Code] DiscordManager Global to Singleton Cleanup
This commit is contained in:
@@ -13,6 +13,11 @@ public:
|
||||
void QueueWebhookMessage(uint32 webhook_id, const std::string& message);
|
||||
void ProcessMessageQueue();
|
||||
void QueuePlayerEventMessage(const PlayerEvent::PlayerEventContainer& e);
|
||||
|
||||
static DiscordManager* Instance() {
|
||||
static DiscordManager instance;
|
||||
return &instance;
|
||||
}
|
||||
private:
|
||||
std::mutex webhook_queue_lock{};
|
||||
std::map<uint32, std::vector<std::string>> webhook_message_queue{};
|
||||
|
||||
Reference in New Issue
Block a user