Skip to content

Search and display file info #8

@TaijaQ

Description

@TaijaQ

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions