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

Commit f55f0d6

Browse files
authored
Merge pull request #83 from cyanray/dev/cyanray
新增: MessageChain 加入 Empty 方法.
2 parents 6804319 + 3c6f77f commit f55f0d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/mirai/defs/message_chain.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ namespace Cyan
117117
return messages_.size();
118118
}
119119

120+
bool Empty() const
121+
{
122+
return Count() == 0;
123+
}
124+
120125
void Clear()
121126
{
122127
messages_.clear();

0 commit comments

Comments
 (0)