diff --git a/lib/Accessory/index.js b/lib/Accessory/index.js index aaa4193..d36c1ab 100644 --- a/lib/Accessory/index.js +++ b/lib/Accessory/index.js @@ -76,7 +76,7 @@ class Accessory { /** * Overflow accessory - * @param {Array<{text:String, value:String}>} options list of items to show in the overflow menu + * @param {Array<{text:String, value:String, url:String}>} options list of items to show in the overflow menu * @param {String} [actionId] optional action id * @param {Object} [dialog] optional confirm object * @param {String} dialog.title title of the confirm dialog @@ -92,6 +92,7 @@ class Accessory { options: options.map((o) => ({ text: { type: "plain_text", text: o.text }, value: o.value, + ...(o.url && { url: o.url }) })), }, };