4.2.1 • Published 4 months ago

@elara-services/roblox.js v4.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

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. 
const roblox = new (require("@elara-services/roblox.js"))({ apis: { rowifi: false } });
// To disable RoWfi's API. 
const roblox = new (require("@elara-services/roblox.js"))({ apis: { rocord: false } });
// To disable RoCord'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!
  • 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);

Get User Presence(s)

roblox.getPresences([ 1, 2, 57908270 ]).then(console.log);

isVerified

roblox.isVerified("<@288450828837322764>").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));

Change Avatar Url

const roblox = new (require("@elara-services/roblox.js"))({
    avatarUrl: `https://example.com/users/%USERID%.png` // '%USERID%' is required!
});
// ....

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!!!

4.2.1

4 months ago

4.1.4

5 months ago

4.1.3

1 year ago

4.1.2

1 year ago

4.1.0

1 year ago

4.1.1

1 year ago

4.0.2

1 year ago

3.4.0

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.3.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.5.0

2 years ago

2.5.1

2 years ago

2.0.0

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago