添加一条文本消息到消息链 `chain` 中。 Example: CommandResult().message("Hello ").message("world!") # 输出 Hello world!
(self, message: str)
| 47 | return new |
| 48 | |
| 49 | def message(self, message: str): |
| 50 | """添加一条文本消息到消息链 `chain` 中。 |
| 51 | |
| 52 | Example: |
| 53 | CommandResult().message("Hello ").message("world!") |
| 54 | # 输出 Hello world! |
| 55 | |
| 56 | """ |
| 57 | self.chain.append(Plain(message)) |
| 58 | return self |
| 59 | |
| 60 | def at(self, name: str, qq: str | int): |
| 61 | """添加一条 At 消息到消息链 `chain` 中。 |