Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 2.09 KB

README.md

File metadata and controls

66 lines (51 loc) · 2.09 KB

roverify

npm Version npm Downloads Checks

Table of contents

About

4.43kB & dependency-free Node.js module to fetch Roblox user data from a Discord user. The module prioritizes RoVer over all other services.

Installation

Use the package manager npm to install roverify:

npm install roverify

Usage

const roverify = require('roverify');

await roverify.verify('113691352327389188')    
  .then((robloxUser) => {
      console.log(robloxUser.name)
  })
  .catch((err) => {
      if (err === 'Discord user id (argument 0) is not verified') console.log('Discord user is not verified')
      else throw err
  })

The robloxUser object returned consists of the following:

{
  'description': 'Welcome to the Roblox profile! This is where you can check out the newest items in the catalog, and get a jumpstart on exploring and building on our Imagination Platform. If you want news on updates to the Roblox platform, or great new experiences to play with friends, check out blog.roblox.com. Please note, this is an automated account. If you need to reach Roblox for any customer service needs find help at www.roblox.com/help',
  'created': '2006-02-27T21:06:40.3Z',
  'isBanned': false,
  'externalAppDisplayName': null,
  'id': 1,
  'name': 'Roblox',
  'displayName': 'Roblox',
  'verificationService': 'bloxlink'
}

Links

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.