def _get_relay_settings(irc_client, config):
    """Returns discord relay settings if available

    :param irc_client: the irc client
    :param dict config: config

    :returns: list of dicts of channel mappings
    :rtype: dict
    """
    for server in config['servers']:
        for chatnet, settings in server.items():
            if chatnet == irc_client.chatnet:
                return settings.get('discord_relay')