donate
Arguments:
Name | Description | Required |
---|---|---|
permLink | PermLink is the link of the stream/video in which to donate to | Yes |
type | Type of item to donate. One of the following: 'LEMON', 'ICE_CREAM', 'DIAMOND', 'NINJAGHINI'. 'NINJET'. | No, defaults to 'LEMON' |
count | Number of 'type' to donate. | No, defaults to 1. |
Example:
const bot = new Dlive(AUTH_KEY);
bot.getLivestreamPage('Ltzonda').then(res => {
if (res.livestream) {
bot.donate(res.livestream.permlink, 'ICE_CREAM', 1).then(console.log);
} else {
console.log('User is not live.')
}
});
true
Updated over 5 years ago