Add array of winners in the data
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉 v4.3.0 is now released!
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