* @since 1.0.0
(options: {
readonly id: Snowflake
readonly requestId: Snowflake
readonly defect: unknown
})
| 55 | * @since 1.0.0 |
| 56 | */ |
| 57 | static fromDefect(options: { |
| 58 | readonly id: Snowflake |
| 59 | readonly requestId: Snowflake |
| 60 | readonly defect: unknown |
| 61 | }): ReplyWithContext<any> { |
| 62 | return new ReplyWithContext({ |
| 63 | reply: new WithExit({ |
| 64 | requestId: options.requestId, |
| 65 | id: options.id, |
| 66 | exit: Exit.die(Schema.encodeSync(Schema.Defect)(options.defect)) |
| 67 | }), |
| 68 | context: Context.empty() as any, |
| 69 | rpc: neverRpc |
| 70 | }) |
| 71 | } |
| 72 | /** |
| 73 | * @since 1.0.0 |
| 74 | */ |
no test coverage detected