mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
migrate manual color conversions to helper
This commit is contained in:
parent
d37a0d46de
commit
e43775ed7d
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue