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

Commit 2a8e823

Browse files
committed
修改: GetRequiredApiVersion更名为GetMiraiCppVersion;
修改: GetApiVersion更名为GetMiraiApiHttpVersion;
1 parent 264f80e commit 2a8e823

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/mirai/mirai_bot.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ namespace Cyan
6565
~MiraiBot();
6666

6767
/**
68-
* \brief 获得 mirai-cpp 适配的 API 版本
69-
* \return 用字符串表示的版本号(1.6.5)
68+
* \brief 获得 mirai-cpp 的版本号
69+
* \return 用字符串表示的版本号,如:"1.6.5"
7070
*/
71-
string GetRequiredApiVersion() const
71+
string GetMiraiCppVersion() const
7272
{
7373
// mirai-api-http v1.6.5
7474
return "1.8.4";
7575
}
7676

7777
/**
7878
* \brief 获得 mirai-api-http 插件的版本
79-
* \return 用字符串表示的版本号(1.6.5)
79+
* \return 用字符串表示的版本号,如:"1.6.5"
8080
*/
81-
string GetApiVersion();
81+
string GetMiraiApiHttpVersion();
8282
/**
8383
* \brief 获得验证后的 SessionKey
8484
* \return SessionKey

src/mirai_bot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace Cyan
5151
return &(this->http_client_);
5252
}
5353

54-
string MiraiBot::GetApiVersion()
54+
string MiraiBot::GetMiraiApiHttpVersion()
5555
{
5656

5757
auto res = http_client_.Get("/about");

0 commit comments

Comments
 (0)