From 4a978413d5d1c7ca360b3f6a45df1db7c0f87fc8 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Thu, 26 Oct 2023 15:59:06 -0400 Subject: [PATCH] Document search.* API methods. --- packages/web-api/src/methods.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 1dc7718fa..41fdb30c8 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -793,8 +793,20 @@ export abstract class Methods extends EventEmitter { }; public readonly search = { + /** + * @description Searches for messages and files matching a query. + * @see {@link https://api.slack.com/methods/search.all search.all` API reference}. + */ all: bindApiCall(this, 'search.all'), + /** + * @description Searches for files matching a query. + * @see {@link https://api.slack.com/methods/search.files search.files` API reference}. + */ files: bindApiCall(this, 'search.files'), + /** + * @description Searches for messages matching a query. + * @see {@link https://api.slack.com/methods/search.messages search.messages` API reference}. + */ messages: bindApiCall(this, 'search.messages'), };