添加一条错误消息到消息链 `chain` 中 Example: CommandResult().error("解析失败")
(self, message: str)
| 81 | |
| 82 | @deprecated("请使用 message 方法代替。") |
| 83 | def error(self, message: str): |
| 84 | """添加一条错误消息到消息链 `chain` 中 |
| 85 | |
| 86 | Example: |
| 87 | CommandResult().error("解析失败") |
| 88 | |
| 89 | """ |
| 90 | self.chain.append(Plain(message)) |
| 91 | return self |
| 92 | |
| 93 | def url_image(self, url: str): |
| 94 | """添加一条图片消息(https 链接)到消息链 `chain` 中。 |
no test coverage detected