(thread = this.thread)
| 1539 | } |
| 1540 | |
| 1541 | userPosts(thread = this.thread) { |
| 1542 | return Effect.flatMap( |
| 1543 | this.options.userPosts(thread, conformanceText(this.rule)), |
| 1544 | (event) => |
| 1545 | event._tag === "MessageCreated" |
| 1546 | ? Effect.succeed(event) |
| 1547 | : Effect.fail(failure(this.rule, "a MessageCreated event from userPosts", event._tag)) |
| 1548 | ) |
| 1549 | } |
| 1550 | |
| 1551 | expectReason<A>( |
| 1552 | tag: ChatErrorReason["_tag"], |