mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
limit maps select length (fixes 1331399827
)
This commit is contained in:
parent
0f7c2da09b
commit
3d3b91a4cd
2 changed files with 5 additions and 5 deletions
|
@ -213,10 +213,10 @@ module.exports = {
|
|||
placeholder: "Select a place",
|
||||
defaultValues: [],
|
||||
options: search.places.map((p, i) => ({
|
||||
label: p.place.name,
|
||||
label: stringwrap(p.place.name, 100),
|
||||
value: `${i}`,
|
||||
emoji: icon(`maps_${p.place.icon}_pin`),
|
||||
description: p.place.address
|
||||
description: stringwrap(p.place.address, 100)
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ const { PERMISSION_GROUPS } = require('#constants');
|
|||
|
||||
const { createEmbed, hexToEmbedColor } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { link, icon, iconAsEmojiObject, citation } = require('#utils/markdown');
|
||||
const { link, icon, iconAsEmojiObject, citation, stringwrap } = require('#utils/markdown');
|
||||
const { editOrReply } = require('#utils/message')
|
||||
const { STATICS, STATIC_ASSETS } = require('#utils/statics')
|
||||
|
||||
|
@ -202,10 +202,10 @@ module.exports = {
|
|||
placeholder: "Select a place",
|
||||
defaultValues: [],
|
||||
options: search.places.map((p, i) => ({
|
||||
label: p.place.name,
|
||||
label: stringwrap(p.place.name, 100),
|
||||
value: `${i}`,
|
||||
emoji: icon(`maps_${p.place.icon}_pin`),
|
||||
description: p.place.address
|
||||
description: stringwrap(p.place.address, 100)
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue