@elara-services/roblox.js

Fetch Roblox or Discord user's Roblox information!

Usage no npm install needed!

<script type="module">
  import elaraServicesRobloxJs from 'https://cdn.skypack.dev/@elara-services/roblox.js';
</script>

README

Roblox API

NODEJS WARNING

You need to have at least nodejs version 14+ or this module will NOT WORK FOR YOU!


This package is just a helper to fetch/get Roblox information for a Discord or Roblox user.

You can search by username, id or Discord-mention (<@DISCORD_USER_ID>)

Getting Started

const roblox = new (require("@elara-services/roblox.js"))();
// If you want to disable a certain API, use 
const roblox = new (require("@elara-services/roblox.js"))({ apis: { rover: false } });
// To disable RoVer's API.
const roblox = new (require("@elara-services/roblox.js"))({ apis: { bloxlink: false } });
// To disable Bloxlink's API. 

// WARNING: You can't disable both, it will give you an error if you try to do that!
// By default both are enabled!

Note: You can use .get or .fetch

  • Fetch by username
roblox.get("SUPERCHIEFYT").then(console.log);
  • Fetch by ID
roblox.get(57908270).then(console.log);

// OR 

roblox.get("57908270").then(console.log);
  • Fetch by Discord User
roblox.get("<@288450828837322764>").then(console.log);

// OR

roblox.get("<@!288450828837322764>").then(console.log);
// For Discord members that have a nickname.

isVerified

roblox.isVerified("One of the versions above ^").then(console.log)
// returns a boolean (true/false)

showDiscordMessageData

let res = await roblox.get("<@!288450828837322764>");
return message.channel.send(roblox.showDiscordMessageData(res));
// OR 
return interaction.reply(roblox.showDiscordMessageData(res));

Return responses

  • Success
{ "status": true, "user": {}, "activity": {}, "groups": [] }
  • Failed
{ "status": false, "message": "Message here" }

WARNING

Unless you know what you're doing with Roblox cookies, I don't suggest you use it, as it CAN give access to YOUR ACCOUNT

I'm not responsible for anyone that fucks up with it, it's your fault and ISN'T FUCKING REQUIRED!!!