aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2018-08-22 23:10:05 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2018-08-22 23:10:05 +0200
commite0b4abb28da99882cc86e41140534cbe46454c9c (patch)
treec3ddbd313f1fe09370a57bedeed0b02c2a9a87eb /wee_slack.py
parent9064677abfb3fe7dc63b3d13ecf0e4c477632437 (diff)
downloadwee-slack-e0b4abb28da99882cc86e41140534cbe46454c9c.tar.gz
Print error if trying to send message in team buffer
Prevents a traceback if you try to send a message in the team buffer. Fixes #543
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index c4df9ba..20133ce 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1113,6 +1113,9 @@ class SlackTeam(object):
def buffer_prnt(self, data):
w.prnt_date_tags(self.channel_buffer, SlackTS().major, tag("team"), data)
+ def send_message(self, message, subtype=None, request_dict_ext={}):
+ w.prnt("", "ERROR: Sending a message in the team buffer is not supported")
+
def find_channel_by_members(self, members, channel_type=None):
for channel in self.channels.itervalues():
if channel.get_members() == members and (