🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

lvckyworld-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lvckyworld-api

The official LvckyWorld-API

1.0.7
latest
Source
npm
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

npm-lvckyworld-api

The official LvckyWorld-API as NPM PACKAGE

Docs Website Discord


Content:

  • How to install

Functions:

Install the Package

First you have to install the package via npm.
You have to run the command: npm install lvckyworld-api.
Then you have to import the package.

Example

TypeScript

import * as api from 'lvckyworld-api';

JavaScript

const api = require('lvckyworld-api')

Now you can use the methods.


Some possible methods:

getDcGlobalBanList()

Example

import * as api from 'lvckyworld-api'

api.MARINA.getDcGlobalBanList().then(response => {
  console.log(response)
}).catch(err => { console.log(err) });

Response Interface

interface lwGlobalBan {
    globalbans: [
        {
            clientid: string,
            clientavatar: string,
            clientname: string,
            banreason: string,
            bancreatorid: string,
            bancreatorname: string,
            bannedOn: string,
            timestam: string,
            permis: boolean
        }
    ]
}




getDiscordUserInfo(discordId: string)

Example

import * as api from 'lvckyworld-api'

api.MARINA.getDiscordUserInfo('761890770935611412').then(response => {
  console.log(response)
}).catch(err => { console.log(err) });

Response Interface

interface lwDiscordInfo {
    id: string,
    username: string,
    avatar: string | null,
    avatar_decoration: string | null,
    discriminator: string,
    public_flags: number | null,
    banner: string | null,
    banner_color: string | null,
    accent_color: string | null
}




getLvckyWorldTeamler()

Example

import * as api from 'lvckyworld-api'

api.MARINA.getLvckyWorldTeamler().then(response => {
  console.log(response)
}).catch(err => { console.log(err) });

Response Interface

interface lwTeamler {
    teamMembers: [
        {
            clientname: string,
            clientid: string,
            roleName: string,
            roleId: string,
            highestRoleId: number,
            sortId: number
        }
    ]
}




getSysAdmins()

Example

import * as api from 'lvckyworld-api'

api.MARINA.getSysAdmins().then(response => {
  console.log(response)
}).catch(err => { console.log(err) });

Response Interface

interface lwSysAdmin {
    lvckyworld: [
        {
            name: string,
            clid: string,
            role: string
        }
    ]
}




isSystemAdmin(discordId: string)

Example

import * as api from 'lvckyworld-api'

api.MARINA.isSystemAdmin.then(response => {
  console.log(response)
}).catch(err => { console.log(err) });
boolean




isGlobalBanned(discordId: string)

Example

import * as api from 'lvckyworld-api'

api.MARINA.isGlobalBanned.then(response => {
  console.log(response)
}).catch(err => { console.log(err) });

Response

boolean

Keywords

lvcky

FAQs

Package last updated on 28 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts