We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8712441 commit bbd7e2aCopy full SHA for bbd7e2a
lib/Accessory/index.js
@@ -76,7 +76,7 @@ class Accessory {
76
77
/**
78
* Overflow accessory
79
- * @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
80
* @param {String} [actionId] optional action id
81
* @param {Object} [dialog] optional confirm object
82
* @param {String} dialog.title title of the confirm dialog
@@ -92,6 +92,7 @@ class Accessory {
92
options: options.map((o) => ({
93
text: { type: "plain_text", text: o.text },
94
value: o.value,
95
+ ...(o.url && { url: o.url })
96
})),
97
},
98
};
0 commit comments