From e8eee90d5f35c1baaf5bc7abdfcad51206305a95 Mon Sep 17 00:00:00 2001 From: Blake Burch Date: Wed, 4 Nov 2020 12:37:35 -0600 Subject: [PATCH] Fix CLI error message for DMs Prevented DMs from being sent. --- slack_blueprints/send_slack_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack_blueprints/send_slack_message.py b/slack_blueprints/send_slack_message.py index bd510c6..8be39ba 100644 --- a/slack_blueprints/send_slack_message.py +++ b/slack_blueprints/send_slack_message.py @@ -75,7 +75,7 @@ def get_args(): args = parser.parse_args() if args.destination_type == 'channel' and not args.channel_name: parser.error('--destination-type channel requires --channel-name') - elif args.destination_type == 'dm' and args.users_to_notify: + elif args.destination_type == 'dm' and not args.users_to_notify: parser.error('--destination-type dm requires --users-to-notify') if args.users_to_notify and not args.user_lookup_method: