Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] getUser

Thedark1337 edited this page Aug 31, 2016 · 3 revisions

getUser(userID)

Get a user.


Parameters

userID number

ID of the user.


Returns

User object of the user or null if not currently in the room.


Example

bot.getUser('xxxxxxxxxxxxxxxxxxxxxxxx');
/*
{
    avatarID: 'rave01',
    badge: 'raveset-g',
    blurb: undefined,
    gRole: 0,
    grab: false,
    id: 5125521,
    ignores: undefined,
    joined: 'xxxx-xx-xx xx:xx:xx.xxxxx',
    language: null,
    level: 12,
    notifications: undefined,
    pp: undefined,
    pw: undefined,
    role: 1,
    slug: null,
    status: 1,
    sub: 0,
    username: 'xxxxxxxxxx',
    vote: 0,
    xp: undefined
}

*/
Clone this wiki locally