Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function clan(name) {
- try {
- cc = null;
- console.log(`https://bungie.net/Platform/GroupV2/Name/${name}/1`);
- await got(`https://bungie.net/Platform/GroupV2/Name/${name}/1`, {headers:h}).then( a => {
- parsed = JSON.parse(a.body);
- detail = parsed.Response.detail;
- cc = new BungieClan(detail.groupId, parsed);
- });
- return cc;
- } catch (error) {
- console.error(error);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement