[Discord] Add Discord webhook callback processing to world (#3322)

This commit is contained in:
Chris Miles authored and GitHub committed 2023-04-29 20:49:06 -04:00
1 parent 95b306599f
commit ecf2a369cc
3 files changed
+31

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ public:
void Disconnect() { if(connection && connection->Handle()) connection->Handle()->Disconnect(); }
void SendMessage(const char *From, const char *Message);
const std::shared_ptr<EQ::Net::ServertalkServerConnection> &GetConnection() const;
inline bool IsConnected() const { return connection->Handle() ? connection->Handle()->IsConnected() : false; }
private:
inline std::string GetIP() const { return (connection && connection->Handle()) ? connection->Handle()->RemoteIP() : 0; }