Add fields_text for tooltip
This commit is contained in:
parent
bfdf7c876c
commit
da55b0d435
2 changed files with 19 additions and 0 deletions
|
@ -53,6 +53,12 @@ export const parseUser = (data) => {
|
|||
value: addEmojis(field.value, data.emojis)
|
||||
}
|
||||
})
|
||||
output.fields_text = data.fields.map(field => {
|
||||
return {
|
||||
name: field.name.replace(/<[^>]*>/g, ''),
|
||||
value: field.value.replace(/<[^>]*>/g, '')
|
||||
}
|
||||
})
|
||||
|
||||
// Utilize avatar_static for gif avatars?
|
||||
output.profile_image_url = data.avatar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue