aboutsummaryrefslogtreecommitdiffstats
path: root/slack/shared.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-19 19:06:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-20 13:21:31 +0100
commit6e7ca7290d4a59398438e14623d9e71db7c7508d (patch)
treec791342ed3589cccc3f03500e06c8d312bf3c5f8 /slack/shared.py
parentb10a3afb80b3477d9df91357b90bb949ac168f52 (diff)
downloadwee-slack-6e7ca7290d4a59398438e14623d9e71db7c7508d.tar.gz
Move completion code to a separate file
Diffstat (limited to 'slack/shared.py')
-rw-r--r--slack/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/shared.py b/slack/shared.py
index d3d8e33..0aea81e 100644
--- a/slack/shared.py
+++ b/slack/shared.py
@@ -4,6 +4,7 @@ from collections import defaultdict
from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Union
if TYPE_CHECKING:
+ from slack.commands import Command
from slack.config import SlackConfig
from slack.error import UncaughtError
from slack.slack_buffer import SlackBuffer
@@ -30,6 +31,7 @@ class Shared:
self.workspaces: Dict[str, SlackWorkspace] = {}
self.current_buffer_pointer: str
self.config: SlackConfig
+ self.commands: Dict[str, Command] = {}
self.uncaught_errors: List[UncaughtError] = []
self.standard_emojis: Dict[str, Emoji]
self.standard_emojis_inverse: Dict[str, Emoji]