aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_api.py
Commit message (Collapse)AuthorAgeFilesLines
* Fetch thread replies when receiving thread messageTrygve Aaberge2024-02-181-4/+6
| | | | | | This is done so we can know if we should include a message hash when completing thread hashes, and it also has the benefit of eliminating the loading time when opening thread buffers.
* Fetch replies in conversation when display_thread_replies is onTrygve Aaberge2024-02-181-0/+15
|
* Only take in limit, not pages in api methodsTrygve Aaberge2024-02-181-13/+12
| | | | | | Instead of having to supply both a limit and the number of pages, change it to only take in a limit, and determine the number of pages automatically.
* Fetch usergroups at startup if edgeapi isn't availableTrygve Aaberge2024-02-181-0/+4
|
* Split edgeapi out to separate classTrygve Aaberge2024-02-181-41/+49
| | | | | Since this isn't available for OAuth tokens it's good to have an easy way to see where it's used.
* Fix some mypy specific type issuesTrygve Aaberge2024-02-181-10/+10
|
* Open all conversation types on startTrygve Aaberge2024-02-181-2/+18
|
* Support unfurling usergroup namesTrygve Aaberge2024-02-181-2/+24
|
* Add support for completing nicksTrygve Aaberge2024-02-181-0/+31
| | | | | | | 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.
* Print error message on http/api errorTrygve Aaberge2024-02-181-31/+69
|
* Send params as post body instead of query paramsTrygve Aaberge2024-02-181-2/+4
|
* Use Iterable instead of List in parametersTrygve Aaberge2024-02-181-3/+3
|
* Fetch multiple users/bots in the same requestTrygve Aaberge2024-02-181-8/+13
| | | | | | | Turns out you can query for multiple users/bots with users.info/bots.info even though it's not documented. Use that to query for multiple users/bots in one request, instead of making tons of requests.
* Change SlackUsers to singular since it only concerns one userTrygve Aaberge2024-02-181-3/+3
|
* Show nick suffix for botsTrygve Aaberge2024-02-181-1/+5
|
* Rename slack_timeout to network_timeoutTrygve Aaberge2024-02-181-1/+1
|
* Call rtm.connect (doesn't connect to web socket yet)Trygve Aaberge2024-02-181-0/+4
|
* Add some todosTrygve Aaberge2024-02-181-1/+1
|
* Add typing for slack conversations historyTrygve Aaberge2024-02-181-2/+5
|
* Add type for users.infoTrygve Aaberge2024-02-181-1/+2
|
* Add typings for users.conversationsTrygve Aaberge2024-02-181-1/+2
|
* Create directory for slack in typingsTrygve Aaberge2024-02-181-2/+2
|
* Create functions for fetch requestsTrygve Aaberge2024-02-181-8/+41
|
* Move SlackApi to a separate fileTrygve Aaberge2024-02-181-0/+48