Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Conversation

@drmorr0
Copy link

@drmorr0 drmorr0 commented Nov 22, 2018

Added a couple things that are needed to interact with the slack API.


def list(self, presence=False):
return self.get('users.list', params={'presence': int(presence)})
def list(self, cursor=None, limit=None, presence=False):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add these two optional parameters at the end? I just want to make sure that we won't break when it's called with positional arguments.

Comment on lines +372 to +373
if thread_ts:
data['thread_ts'] = thread_ts
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we handle this one separately?

@xiaochuanyu
Copy link

@os @Ishaan28malik
I opened up a similar PR #167 which also addresses @os's comment above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants