Post to thread object, not channel object.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
c5e15161bd
commit
14e44c1734
|
@ -61,7 +61,7 @@ print(text)
|
||||||
|
|
||||||
thread = slack.find_thread(thread_id)
|
thread = slack.find_thread(thread_id)
|
||||||
if thread == None:
|
if thread == None:
|
||||||
print("No such thread!")
|
print("No such thread: %s!" % thread_id)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
channel.post(text)
|
thread.post(text)
|
||||||
|
|
Loading…
Reference in New Issue