getLivestreamTreasureChestWinners
Arguments:
Name | Description | Required |
---|---|---|
streamer | Streamers channel name from which to get the winners | No, defaults to user specified in dlive class instance. |
Example:
const bot = new Dlive(key);
bot.getLivestreamTreasureChestWinners('LKD70').then(w => {
console.log(w.lastGiveawayWinners.map(winner =>
`${winner.user.displayname} won ${winner.value} LINO`
).join('\n'));
});
bLaCkwEw won 208000 LINO
JayD_God won 162000 LINO
habile_kiiler won 145000 LINO
{
"lastGiveawayWin": "0",
"lastGiveawayWinners": [
{
"value": "208000",
"user": {
"avatar": "https://images.prd.dlivecdn.com/avatar/73326a70-5add-11e9-85a0-369951292ae4",
"__typename": "User",
"displayname": "bLaCkwEw"
},
"__typename": "GiveawayWinner"
},
{
"value": "162000",
"user": {
"avatar": "https://images.prd.dlivecdn.com/avatar/c818e82e-69e4-11e9-97c5-e678d1f52c72",
"__typename": "User",
"displayname": "JayD_God"
},
"__typename": "GiveawayWinner"
},
{
"value": "145000",
"user": {
"avatar": "https://images.prd.dlivecdn.com/avatar/f2376beb-6066-11e9-bc01-360e4699d2aa",
"__typename": "User",
"displayname": "habile_kiiler"
},
"__typename": "GiveawayWinner"
}
],
"__typename": "TreasureChest"
}
Updated over 5 years ago