diff --git a/commands/interaction/slash/search/maps.js b/commands/interaction/slash/search/maps.js index b597999..d76dd87 100644 --- a/commands/interaction/slash/search/maps.js +++ b/commands/interaction/slash/search/maps.js @@ -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) })) }) } diff --git a/commands/message/search/maps.js b/commands/message/search/maps.js index abfe797..fff926e 100644 --- a/commands/message/search/maps.js +++ b/commands/message/search/maps.js @@ -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) })) }) }