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

Commit 712c183

Browse files
committed
MessageChain.face(name);
1 parent 01f73f4 commit 712c183

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/defs/message_chain.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ namespace Cyan
9292
messages_.push_back(j);
9393
return *this;
9494
}
95+
MessageChain& Face(const string& name)
96+
{
97+
json j;
98+
j["type"] = "Face";
99+
j["name"] = name;
100+
messages_.push_back(j);
101+
return *this;
102+
}
95103
MessageChain& Plain(const string& plainText)
96104
{
97105
json j;

0 commit comments

Comments
 (0)