mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Added method to test whether string is ID
This commit is contained in:
4
index.js
4
index.js
@@ -9,6 +9,10 @@ var Invite = require( "./lib/invite.js" ).Invite;
|
|||||||
var PMChannel = require( "./lib/PMChannel.js" ).PMChannel;
|
var PMChannel = require( "./lib/PMChannel.js" ).PMChannel;
|
||||||
var WebSocket = require( 'ws' );
|
var WebSocket = require( 'ws' );
|
||||||
|
|
||||||
|
exports.prototype.isUserID = function(id){
|
||||||
|
return ((id + "").length === 17 && !isNaN(id));
|
||||||
|
}
|
||||||
|
|
||||||
exports.Client = function( options ) {
|
exports.Client = function( options ) {
|
||||||
|
|
||||||
this.options = options || {};
|
this.options = options || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user