Skip to content

Commit

Permalink
Document search.* API methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Oct 26, 2023
1 parent e6adeb0 commit 4a97841
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,20 @@ export abstract class Methods extends EventEmitter<WebClientEvent> {
};

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<SearchAllArguments, SearchAllResponse>(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<SearchFilesArguments, SearchFilesResponse>(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<SearchMessagesArguments, SearchMessagesResponse>(this, 'search.messages'),
};

Expand Down

0 comments on commit 4a97841

Please sign in to comment.