question-mark
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.

Add array of winners in the data

See original GitHub issue

Hi, I’m looking for adding an array of winners by their ID directly in the data, it will output like this:

{
  "messageID":"788667977205415967",
  "channelID":"729084166674841680",
  "guildID":"729083124226719816",
  "startAt":1608103498384,
  "endAt":1608107098384,
  "ended":true,
  "winnerCount":2,
  "winners": [
    "293095120134340609",
    "667808789923364883"
  ],
  "prize":"Something",
  "hostedBy":"<@330030648456642562>"
}

As you can see, I added this part:

 "winners": [
    "293095120134340609",
    "667808789923364883"
  ],

It is possible to add this part on the data? Thanks in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Androz2091commented, Dec 21, 2020

🎉 v4.3.0 is now released!

1reaction
Nico105commented, Dec 16, 2020

With the next update the merge of v.4.3.0 the giveaway Object will get a extraData property where you can store things like your winner array

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create an object of arrays with their corresponding winners
You could reduce the array by taking an object as result set and build a new property for winner and loser. Add the...
Read more >
Find the winner by adding Pairwise ... - GeeksforGeeks
Given an array arr[] of positive distinct integers, two players A and B are playing a game. At each move, a player selects...
Read more >
Guidelines and examples of array formulas - Microsoft Support
An array formula is a formula that can perform multiple calculations on one or more items in an array. You can think of...
Read more >
Array formulas and functions in Excel - examples and guidelines
The tutorial explains what is an array formula in Excel and provides examples of using Excel array functions and constants.
Read more >
Different Ways to Add Values to a C# Array - Code Maze
While we won't use this method in the benchmark since it doesn't add values to the array, it's important to know how to...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found