slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
158 stars 27 forks source link

Colon-delimited emoji names count against string maximums for e.g. OpenForm fields #235

Open tomas-zijdemans-vipps opened 10 months ago

tomas-zijdemans-vipps commented 10 months ago

This is a minor issue, but a bit annoying. I get that the title needs to fit in the form. But consider a form for submitting a proposal for a talk at a conference. If I put this title for the form: workflow.addStep(Schema.slack.functions.OpenForm, { title: ":microphone: Submit talk :microphone:"... I get: Validation for parametertitlefailed: value is more characters than maxLength - 24 characters

... The emoji characters count against the 24 char limit, even thought this title is short and sweet :)

filmaj commented 10 months ago

Will raise this internally!

As a workaround, you can insert emoji characters directly into the string instead of using the colon-delimited string value for it, i.e. 🎤 instead of :microphone:.

tomas-zijdemans-vipps commented 10 months ago

That works!

filmaj commented 10 months ago

Agree it is annoying, and the experience is inconsistent compared to everywhere else in the Slack client, where the colon-delimited emoji string names get auto-converted to the actual emoji. Should be no different in coded workflows. I've raised this internally, thanks for reporting 🙇