diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-19 23:05:25 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | d2bb9263f0062275b92024ccdba68d5439521b5d (patch) | |
tree | dd9b46727d5a3fc8e1b1c232419504772305e928 /typings/slack_edgeapi | |
parent | d6b4f505d53e69ecb39d518a89d8d0013e22ad51 (diff) | |
download | wee-slack-d2bb9263f0062275b92024ccdba68d5439521b5d.tar.gz |
Add support for completing nicks
This uses Slacks edgeapi which only works for session tokens, but has
the benefit of being able to complete nicks without all users being
loaded. So need to add some completion for the loaded users for when
using OAuth tokens as well.
Diffstat (limited to 'typings/slack_edgeapi')
-rw-r--r-- | typings/slack_edgeapi/slack_users_search.pyi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/typings/slack_edgeapi/slack_users_search.pyi b/typings/slack_edgeapi/slack_users_search.pyi new file mode 100644 index 0000000..47a9f38 --- /dev/null +++ b/typings/slack_edgeapi/slack_users_search.pyi @@ -0,0 +1,11 @@ +from typing import List, Literal, TypedDict + +from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_users_info import SlackUserInfo + +class SlackUsersSearchSuccessResponse(TypedDict): + ok: Literal[True] + results: List[SlackUserInfo] + presence_active_ids: List[str] + +SlackUsersSearchResponse = SlackUsersSearchSuccessResponse | SlackErrorResponse |