Limit label length in button

This commit is contained in:
Kiran Shila
2022-05-04 19:23:32 -07:00
parent 5b5bcacc0c
commit e94a753980

View File

@@ -71,7 +71,7 @@
:style 1
:custom_id (str "option-page:" uuid ":" option "-" page)
:disabled false
:label label})
:label (apply str (take MAX-CHARACTERS label))})
(defn select-menu-option [index result]
{:label (apply str (take MAX-CHARACTERS (or (:title result) (:name result))))