diff --git a/src/api/util.h b/src/api/util.h index bfeed1f..912efb8 100644 --- a/src/api/util.h +++ b/src/api/util.h @@ -2,6 +2,7 @@ #define BOT_UTIL_H #include +#include class util { public: @@ -22,6 +23,13 @@ public: * @return The default embed */ static dpp::embed getDefaultEmbed(EmbedType type = INFO); + + /** + * @brief Creates a connection to the database + * @param config The database config + * @return The connection + */ + static sql::Connection* createConnection(const json& config); };