-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Milestone
Description
Methods
search.files
Search the files, primarily by the content. If more than one search term is provided, user and channel are also matched at a lower priority. Add in:channel to search within a channel or a private convo, and from:username to get messages by a user or a bot.
files.info
Gets information about a file by its ID. Since a user can't remember file IDs, we usesearch.files to get it. The call returns a file object, paging info and a list of comments.
Use
Turn the query parameters and call args of search.files into an easy-to-use command, which finds the file, notifies the user if there is more than one match, and then uses the file ID to automatically call files.info and present the desired result.
TaijaQ