getLivestreamPage
Arguments:
Name | Description | Required |
---|---|---|
DisplayName | The Dlive username of the user you wish to return livestreamPage data for | No, defaults to the DisplayName used to initialize the Dlive class. |
Example:
const bot = new Dlive(key);
bot.getLivestreamPage('LKD70').then(res => {
console.log(`${res.displayname} has ${res.followers.totalCount} followers!`)
});
LKD70 has 80 followers!
{
"id":"user:dlive-16407341",
"avatar":"https://images.prd.dlivecdn.com/avatar/6f9c4ac4-73d8-11e9-a383-66bb2e204db6",
"__typename":"User",
"displayname":"LKD70",
"partnerStatus":"NONE",
"username":"dlive-16407341",
"isFollowing":false,
"isMe":false,
"followers":{
"totalCount":80,
"__typename":"UserConnection"
},
"isSubscribing":false,
"canSubscribe":false,
"banStatus":"NO_BAN",
"about":"The LKD70.\n\nDid you know... You can follow me for free? It costs exactly 0 lemons...\n\nNeed help with something related to DLive? Head over to the amazing official DLive Discord: https://go.dlive.tv/discord\n\nWant to hang out? Head over to my discord: https://invite.gg/LKDlive\n\nFollow me ontwitter: https://twitter.com/DliveLuke\n ",
"myRoomRole":"Moderator",
"livestream":null,
"hostingLivestream":null,
"private":null,
"videos":{
"totalCount":0,
"__typename":"VideoConnection"
},
"pastBroadcasts":{
"totalCount":6,
"__typename":"PastBroadcastConnection"
},
"following":{
"totalCount":84,
"__typename":"UserConnection"
}
}
Updated over 5 years ago