mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Added method to test whether string is ID
This commit is contained in:
parent
a0d4fa930c
commit
a6bcb7befb
1 changed files with 4 additions and 0 deletions
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 WebSocket = require( 'ws' );
|
||||
|
||||
exports.prototype.isUserID = function(id){
|
||||
return ((id + "").length === 17 && !isNaN(id));
|
||||
}
|
||||
|
||||
exports.Client = function( options ) {
|
||||
|
||||
this.options = options || {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue