Added more functionality and clickable deny and accept buttons that don't do anything, this also fixes the issue with the background not working properly

This commit is contained in:
apa420
2019-01-20 14:45:59 +01:00
parent 0b2480d715
commit 7067b0503d
11 changed files with 64 additions and 14 deletions
+12
View File
@@ -23,6 +23,18 @@ const rapidjson::Value &getArgs(const rapidjson::Value &data)
return args;
}
const rapidjson::Value &getMsgID(const rapidjson::Value &data)
{
if (!data.HasMember("msg_id"))
{
throw std::runtime_error("Missing member msg_id");
}
const auto &msgID = data["msg_id"];
return msgID;
}
bool getCreatedByUser(const rapidjson::Value &data, ActionUser &user)
{
return rj::getSafe(data, "created_by", user.name) &&