Skip to content

Commit bbd7e2a

Browse files
fix: fixing overflow accessory to take urls (#5)
1 parent 8712441 commit bbd7e2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Accessory/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Accessory {
7676

7777
/**
7878
* Overflow accessory
79-
* @param {Array<{text:String, value:String}>} options list of items to show in the overflow menu
79+
* @param {Array<{text:String, value:String, url:String}>} options list of items to show in the overflow menu
8080
* @param {String} [actionId] optional action id
8181
* @param {Object} [dialog] optional confirm object
8282
* @param {String} dialog.title title of the confirm dialog
@@ -92,6 +92,7 @@ class Accessory {
9292
options: options.map((o) => ({
9393
text: { type: "plain_text", text: o.text },
9494
value: o.value,
95+
...(o.url && { url: o.url })
9596
})),
9697
},
9798
};

0 commit comments

Comments
 (0)