This repository was archived by the owner on Aug 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,10 @@ namespace Cyan
215215 * \brief 将群成员踢出群组
216216 * \param gid 群组(GID_t)
217217 * \param memberId 群成员(QQ_t)
218- * \param msg 可选, 填写踢人理由, 默认为空
218+ * \param reason_msg 可选, 填写踢人理由, 默认为空
219219 * \return 始终为 true 出错会抛出异常
220220 */
221- bool Kick (GID_t gid, QQ_t memberId, const string& msg = " " );
221+ bool Kick (GID_t gid, QQ_t memberId, const string& reason_msg = " " );
222222 /* *
223223 * \brief 撤回一条消息
224224 * \param mid 消息ID(MessageId)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace Cyan
2020 pool_ (4 ) {}
2121 MiraiBot::MiraiBot (const string& host, int port) :
2222 host_ (host),
23- port_ (8080 ),
23+ port_ (port ),
2424 qq_ (0 ),
2525 cacheSize_ (4096 ),
2626 ws_enabled_ (true ),
@@ -513,14 +513,14 @@ namespace Cyan
513513 }
514514
515515
516- bool MiraiBot::Kick (GID_t gid, QQ_t memberId, const string& msg )
516+ bool MiraiBot::Kick (GID_t gid, QQ_t memberId, const string& reason_msg )
517517 {
518518 json data =
519519 {
520520 { " sessionKey" , sessionKey_ },
521521 { " target" , int64_t (gid)},
522522 { " memberId" , int64_t (memberId)},
523- { " msg " , msg }
523+ { " reason_msg " , reason_msg }
524524 };
525525
526526 auto res = http_client_.Post (" /kick" , data.dump (), " application/json;charset=UTF-8" );
You can’t perform that action at this time.
0 commit comments