You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use this to perform Discord REST API calls safely.
92
96
*/
93
97
client: Readonly<Client>,
94
98
@@ -151,6 +155,11 @@ export type ContextMenuMiddleware =
151
155
*
152
156
* @typeParam T - The Discord HTTPS API interaction type.
153
157
* Defaults to {@link DiscordHttpsAPIInteraction}.
158
+
*
159
+
* @param interaction - The raw Discord HTTPS API interaction.
160
+
* @param client - A read-only {@link Client} instance.
161
+
* @param flush - A function you can call to immediately stop further middleware execution and end the request. Ends the middleware chain immediately. Calling `flush()` stops further middleware.
162
+
* @param res - `res` should be provided to unknown middlewares only, as {@link UnknownMiddleware} is meant to be used when the library does not yet cover a specific interaction.
0 commit comments