Skip to content

Commit

Permalink
fix: fixing overflow accessory to take urls (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav-suman-16 committed Apr 28, 2022
1 parent 8712441 commit bbd7e2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Accessory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 })
})),
},
};
Expand Down

0 comments on commit bbd7e2a

Please sign in to comment.