mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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",
|
placeholder: "Select a place",
|
||||||
defaultValues: [],
|
defaultValues: [],
|
||||||
options: search.places.map((p, i) => ({
|
options: search.places.map((p, i) => ({
|
||||||
label: p.place.name,
|
label: stringwrap(p.place.name, 100),
|
||||||
value: `${i}`,
|
value: `${i}`,
|
||||||
emoji: icon(`maps_${p.place.icon}_pin`),
|
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 { createEmbed, hexToEmbedColor } = require('#utils/embed');
|
||||||
const { acknowledge } = require('#utils/interactions');
|
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 { editOrReply } = require('#utils/message')
|
||||||
const { STATICS, STATIC_ASSETS } = require('#utils/statics')
|
const { STATICS, STATIC_ASSETS } = require('#utils/statics')
|
||||||
|
|
||||||
|
@ -202,10 +202,10 @@ module.exports = {
|
||||||
placeholder: "Select a place",
|
placeholder: "Select a place",
|
||||||
defaultValues: [],
|
defaultValues: [],
|
||||||
options: search.places.map((p, i) => ({
|
options: search.places.map((p, i) => ({
|
||||||
label: p.place.name,
|
label: stringwrap(p.place.name, 100),
|
||||||
value: `${i}`,
|
value: `${i}`,
|
||||||
emoji: icon(`maps_${p.place.icon}_pin`),
|
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