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
The SlackClient.SearchFiles returns a SearchResponseFiles, which does not publicly expose the "files" field.
Furthermore, the SearchResponseFiles class has a private field "messages" which does not seem to make sense.
The SearchResponseFiles.cs file can be fixed by adding a public "files" field and remove the "messages field". I suggest this is merged into the project.
I currently use a workaround, where i copied the SlackClient.SearchFiles and have it use my own SearchResponseFiles class.
Corrected code:
[RequestPath("search.files")]
public class SearchResponseFiles : Response
{
public string query;
public SearchResponseFilesContainer files; // files, not messages AND public
}
public class SearchResponseFilesContainer
{
/// <summary>
/// Can be null if used in the context of search.all
/// Please use paging.total instead.
/// </summary>
public int total;
public PaginationInformation paging;
public File[] matches;
}
The text was updated successfully, but these errors were encountered:
The SlackClient.SearchFiles returns a SearchResponseFiles, which does not publicly expose the "files" field.
Furthermore, the SearchResponseFiles class has a private field "messages" which does not seem to make sense.
The SearchResponseFiles.cs file can be fixed by adding a public "files" field and remove the "messages field". I suggest this is merged into the project.
I currently use a workaround, where i copied the SlackClient.SearchFiles and have it use my own SearchResponseFiles class.
Corrected code:
The text was updated successfully, but these errors were encountered: