* Creates a terminal reply context that interrupts the supplied request. * * @since 4.0.0
(options: {
readonly id: Snowflake
readonly requestId: Snowflake
})
| 111 | * @since 4.0.0 |
| 112 | */ |
| 113 | static interrupt(options: { |
| 114 | readonly id: Snowflake |
| 115 | readonly requestId: Snowflake |
| 116 | }): ReplyWithContext<any> { |
| 117 | return new ReplyWithContext({ |
| 118 | reply: new WithExit({ |
| 119 | requestId: options.requestId, |
| 120 | id: options.id, |
| 121 | exit: Exit.interrupt() |
| 122 | }), |
| 123 | context: Context.empty() as any, |
| 124 | rpc: neverRpc |
| 125 | }) |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | const neverRpc = Rpc.make("Never", { |
no outgoing calls