Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit fba036f

Browse files
authored
Merge pull request #120 from Numendacil/original
Remove 'Announcement' field from group_config
2 parents d63e9a1 + 1d98ad3 commit fba036f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/mirai/defs/group_config.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Cyan
2121
/**
2222
* @brief 群公告
2323
*/
24-
string Announcement;
24+
// string Announcement;
2525

2626
/**
2727
* @brief 是否允许坦白说
@@ -46,7 +46,7 @@ namespace Cyan
4646
virtual bool Set(const json& j) override
4747
{
4848
Name = j["name"].get<string>();
49-
Announcement = j["announcement"].get<string>();
49+
// Announcement = j["announcement"].get<string>();
5050
ConfessTalk = j["confessTalk"].get<bool>();
5151
AllowMemberInvite = j["allowMemberInvite"].get<bool>();
5252
AutoApprove = j["autoApprove"].get<bool>();
@@ -58,7 +58,7 @@ namespace Cyan
5858
{
5959
json j = json::object();
6060
j["name"] = Name;
61-
j["announcement"] = Announcement;
61+
// j["announcement"] = Announcement;
6262
j["confessTalk"] = ConfessTalk;
6363
j["allowMemberInvite"] = AllowMemberInvite;
6464
j["autoApprove"] = AutoApprove;

include/mirai/mirai_bot.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ namespace Cyan
229229
* @param withDownloadInfo 获取下载信息(需要较长时间)
230230
* @return GroupFile
231231
*/
232-
GroupFile GetGroupFilById(const GID_t& gid, const string& groupFileId, bool withDownloadInfo = false);
232+
GroupFile GetGroupFileById(const GID_t& gid, const string& groupFileId, bool withDownloadInfo = false);
233233

234234
/**
235235
* @brief 创建群文件夹

src/mirai_bot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ namespace Cyan
692692
return result;
693693
}
694694

695-
GroupFile MiraiBot::GetGroupFilById(const GID_t& gid, const string& groupFileId, bool withDownloadInfo)
695+
GroupFile MiraiBot::GetGroupFileById(const GID_t& gid, const string& groupFileId, bool withDownloadInfo)
696696
{
697697
stringstream api_url;
698698
api_url

0 commit comments

Comments
 (0)