Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined value in extraData...

See original GitHub issue

When using giveaway.extraData in my embed for the module it shows undefined??

generateMainEmbed(giveaway) { const embed = new discord.MessageEmbed(); embed .setTitle(giveaway.prize) .setDescription( giveaway.remainingTimeText + '\n' + (giveaway.hostedBy ? giveaway.messages.hostedBy.replace('{user}', giveaway.hostedBy) : '') + '\n' + ("**Prize:** " + ${giveaway.prize}) ).addField(📣 Requirements:, giveaway.extraData) .setTimestamp(new Date(giveaway.endAt).toISOString()); return embed; }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

MaximKing1commented, Feb 6, 2021

Also that is workign thank you… ^^

MaximKing1commented, Feb 6, 2021

Will do 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

extraData parameter in a Block should be treated as Optional
... `extraData` parameter is not present in the Block returned by Blockchain network, Error: invalid hash (argument="value", value=undefined ...
Read more >
Python json.loads shows ValueError: Extra data - Stack Overflow
This is the error you get whenever the input JSON has more than one object per line. Many of the answer here assume...
Read more >
JSON Parse error always undefined - Designer - OL Learn
Hi,. I have issue with a JSON. I got undefined in my template. For all my values. Here is the JSON from the...
Read more >
FlatList receiving undefined values after fetching json-React ...
Coding example for the question FlatList receiving undefined values after fetching json-React Native.
Read more >
Usage | FlashList
extraData ​. A marker property for telling the list to re-render (since it implements PureComponent ). If any of your renderItem , ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found