According to the docs, you can override on a per-message level by specifying a {% block token %}{% endblock %} in your message templates. But when I try this, I get the following error: ValueError: token parameter is required if custom endpoint URL is not specified.
According to the docs, you can override on a per-message level by specifying a
{% block token %}{% endblock %}
in your message templates. But when I try this, I get the following error:ValueError: token parameter is required if custom endpoint URL is not specified
.It seems
slack_message
does not look for a token override in the message template, asrender
is not specified for thetoken
param in theslack_message
method: https://github.com/lamby/django-slack/blob/ea71627729e9c325914181f25ce7507a37c42a35/django_slack/api.pyrender
should betrue
for thetoken
for it to be able to be overriden per message, right?This looks to be the case for other params as well, e.g.
icon_url
,icon_emoji
etc.