Skip to content

Commit

Permalink
Fix events (#173)
Browse files Browse the repository at this point in the history
* Add missing bluebird imports

* v4.6.5: Fix events
  • Loading branch information
Neztore authored Aug 2, 2020
1 parent ed043b5 commit 76de82e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/group/getAuditLog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Includes
const http = require('../util/http.js').func
const Promise = require('bluebird')

exports.required = ['group']
exports.optional = ['actionType', 'userId', 'sortOrder', 'limit', 'cursor', 'jar']
Expand Down
2 changes: 1 addition & 1 deletion lib/group/getPlayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getPlayersInRole (jar, group, rolesetId, sortOrder, limit, cursor, curr
const nextPageCursor = pageData.nextPageCursor
const dataArray = pageData.data

if (!dataArray) return reject(new Error('Error while retreiving players!'))
if (!dataArray) return reject(new Error('Error while retrieving players!'))

currentPlayers = currentPlayers.concat(dataArray)

Expand Down
1 change: 1 addition & 0 deletions lib/group/getShout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Includes
const http = require('../util/http.js').func
const Promise = require('bluebird')

// Args
exports.required = ['group']
Expand Down
1 change: 1 addition & 0 deletions lib/group/getWall.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const http = require('../util/http.js').func
const Promise = require('bluebird')

exports.required = ['group']
exports.optional = ['sortOrder', 'limit', 'cursor', 'jar']
Expand Down
1 change: 1 addition & 0 deletions lib/user/getFriendRequests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Includes
const http = require('../util/http.js').func
const Promise = require('bluebird')

// Args
exports.required = []
Expand Down
1 change: 1 addition & 0 deletions lib/user/getMessages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Includes
const http = require('../util/http.js').func
const Promise = require('bluebird')

// Args
exports.required = []
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noblox.js",
"version": "4.6.4",
"version": "4.6.5",
"description": "A Node.js wrapper for ROBLOX. (original from sentanos)",
"main": "lib/index.js",
"types": "typings/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ declare module "noblox.js" {
on(event: 'connect', listener: () => void): this;
on(event: 'close', listener: (err: any) => void): this;
on(event: 'error', listener: (err: Error) => void): this;
on(event: 'data', listener: (auditLog: audit) => void): this;
on(event: 'data', listener: (auditLog: AuditItem) => void): this;
}

/// Party
Expand Down

0 comments on commit 76de82e

Please sign in to comment.