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

Commit b4a557e

Browse files
authored
Merge pull request #137 from Int-0X7FFFFFFF/dev/int-0x7FFFFFFF
Dev/int 0x7 fffffff
2 parents a9c486f + c370108 commit b4a557e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/BotEvents.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22
// 使用静态库必须要在引入 mirai.h 前定义这个宏
33
#define MIRAICPP_STATICLIB
4-
#include <mirai/mirai_bot.hpp>
4+
#include <mirai/MiraiBot.hpp>
55
#include <mirai/events/BotJoinGroupEvent.hpp>
66
#include <mirai/events/BotMuteEvent.hpp>
77
#include <mirai/events/BotUnmuteEvent.hpp>

include/mirai/messages/ImageMessage.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ namespace Cyan
8282
return
8383
{
8484
{ "type", GetType() },
85-
{ "imageId", imageId_.empty()? nullptr : imageId_ },
86-
{ "url", url_.empty()? nullptr : url_ },
87-
{ "path", path_.empty()? nullptr : path_ },
88-
{ "base64", base64_.empty()? nullptr : base64_ }
85+
{ "imageId", imageId_ },
86+
{ "url", url_ },
87+
{ "path", path_ },
88+
{ "base64", base64_ }
8989
};
9090
}
9191
virtual ~ImageMessage() {}

0 commit comments

Comments
 (0)