UNPKG

discord-user-bots

Version:

A library that allows you to use the full potential of Discords API to create and operate powerful user bots

31 lines (28 loc) 712 B
/** * * ## OVERVIEW * * A class for handling Discord's x-track system. * */ function generateXTrack(os, browser, browserVersion, ua) { return btoa( JSON.stringify({ os: os, browser: browser, device: "", system_locale: "en-US", browser_user_agent: ua, browser_version: browserVersion, os_version: "", referrer: "", referring_domain: "", referrer_current: "", referring_domain_current: "", release_channel: "stable", client_build_number: 9999, client_event_source: null, }) ); } module.exports = generateXTrack;