deno-slack-sdk icon indicating copy to clipboard operation
deno-slack-sdk copied to clipboard

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

Open tomas-zijdemans opened this issue 2 years ago • 3 comments

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 parameter title failed: 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 :)

tomas-zijdemans avatar Oct 24 '23 12:10 tomas-zijdemans

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:.

filmaj avatar Oct 24 '23 12:10 filmaj

That works!

tomas-zijdemans avatar Oct 24 '23 12:10 tomas-zijdemans

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 🙇

filmaj avatar Oct 24 '23 13:10 filmaj