mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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 WebSocket = require( 'ws' );
|
||||
|
||||
exports.prototype.isUserID = function(id){
|
||||
return ((id + "").length === 17 && !isNaN(id));
|
||||
}
|
||||
|
||||
exports.Client = function( options ) {
|
||||
|
||||
this.options = options || {};
|
||||
|
||||
Reference in New Issue
Block a user