Created the util.h

This commit is contained in:
Mathias Wagner 2023-10-29 16:32:33 +01:00
parent 7f0c7828fb
commit 11a2ff2c5f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

28
src/api/util.h Normal file
View File

@ -0,0 +1,28 @@
#ifndef BOT_UTIL_H
#define BOT_UTIL_H
#include <dpp/dpp.h>
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