From 11a2ff2c5f5fdb536a23b92fc1287cc87dd1f891 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 29 Oct 2023 16:32:33 +0100 Subject: [PATCH] Created the util.h --- src/api/util.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/api/util.h diff --git a/src/api/util.h b/src/api/util.h new file mode 100644 index 0000000..bfeed1f --- /dev/null +++ b/src/api/util.h @@ -0,0 +1,28 @@ +#ifndef BOT_UTIL_H +#define BOT_UTIL_H + +#include + +class util { +public: + /** + * @brief The type of embed + */ + enum EmbedType {ERROR,SUCCESS,INFO}; + + /** + * @brief Gets the hex color of an embed type + * @param type The type of embed + * @return The hex color + */ + static uint32_t getHexColor(EmbedType type = INFO); + + /** + * @brief Gets the default embed + * @return The default embed + */ + static dpp::embed getDefaultEmbed(EmbedType type = INFO); +}; + + +#endif //BOT_UTIL_H