diff --git a/commands/interaction/slash/search/maps.js b/commands/interaction/slash/search/maps.js index 0a68cda..b597999 100644 --- a/commands/interaction/slash/search/maps.js +++ b/commands/interaction/slash/search/maps.js @@ -1,7 +1,7 @@ const { maps, mapsSupplemental } = require('#api'); const { PERMISSION_GROUPS } = require('#constants'); -const { createEmbed } = require('#utils/embed'); +const { createEmbed, hexToEmbedColor } = require('#utils/embed'); const { acknowledge } = require('#utils/interactions'); const { link, icon, iconAsEmojiObject, citation } = require('#utils/markdown'); const { editOrReply } = require('#utils/message') @@ -19,7 +19,7 @@ function renderPlaceCard(context, place) { }, description: `${place.address.full}`, url: place.url, - color: parseInt(place.style.color.substring(1, 7), 16) + color: hexToEmbedColor(place.style.color) })] if (place.display_type) { diff --git a/commands/message/search/maps.js b/commands/message/search/maps.js index b7cec14..abfe797 100644 --- a/commands/message/search/maps.js +++ b/commands/message/search/maps.js @@ -1,7 +1,7 @@ const { maps, mapsSupplemental } = require('#api'); const { PERMISSION_GROUPS } = require('#constants'); -const { createEmbed } = require('#utils/embed'); +const { createEmbed, hexToEmbedColor } = require('#utils/embed'); const { acknowledge } = require('#utils/interactions'); const { link, icon, iconAsEmojiObject, citation } = require('#utils/markdown'); const { editOrReply } = require('#utils/message') @@ -18,7 +18,7 @@ function renderPlaceCard(context, place) { }, description: `${place.address.full}`, url: place.url, - color: parseInt(place.style.color.substring(1, 7), 16) + color: hexToEmbedColor(place.style.color) })] if (place.display_type) {