async def _send_message(client, channel: str, message: str):
    'Sends a message to a channel, with basic logging & error handling.'
    try:
        (await client.chat_postMessage(channel=channel, text=message))
    except SlackApiError as e:
        logging.exception(f"error from slack API when trying to send message: {e.response['error']}")
        print('Encountered SlackApiError when trying to send message (see logs.)')
    except AttributeError:
        logging.exception('suspected issue in Slack API when trying to send message. This bug has occured before!')
        print('Encountered AttributeError when trying to send message (see logs.)')
Sends a message to a channel, with basic logging & error handling.
async def _send_message(client, channel: str, message: str):
    
    try:
        (await client.chat_postMessage(channel=channel, text=message))
    except SlackApiError as e:
        logging.exception(f"error from slack API when trying to send message: {e.response['error']}")
        print('Encountered SlackApiError when trying to send message (see logs.)')
    except AttributeError:
        logging.exception('suspected issue in Slack API when trying to send message. This bug has occured before!')
        print('Encountered AttributeError when trying to send message (see logs.)')