def _get_webhook_endpoint(self, http_conn_id, webhook_endpoint):
if webhook_endpoint:<EOL><INDENT>endpoint = webhook_endpoint<EOL><DEDENT>elif http_conn_id:<EOL><INDENT>conn = self.get_connection(http_conn_id)<EOL>extra = conn.extra_dejson<EOL>endpoint = extra.get('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise AirflowException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>if not re.match('<STR_LIT>', endpoint):<EOL><INDENT>raise AirflowException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>return endpoint<EOL>
Given a Discord http_conn_id, return the default webhook endpoint or override if a
webhook_endpoint is manually supplied.

:param http_conn_id: The provided connection ID
:param webhook_endpoint: The manually provided webhook endpoint
:return: Webhook endpoint (str) to use