utils.selectionMessage: add description support

This commit is contained in:
Cynthia Foxwell 2022-04-24 12:16:01 -06:00
parent b3444b16e1
commit c116ed2dc8

View file

@ -197,6 +197,7 @@ async function selectionMessage(msg, heading, options, timeout = 30000) {
data.components[0].components[0].options.push({
label: value.display,
value: value.key,
description: value.description,
});
});
if (options.length > 20) {