Added nonce support to 'sendMessage'

This commit is contained in:
Zachary Vacura
2016-08-15 16:21:32 -05:00
parent ce198ef005
commit 3b594fd86d
4 changed files with 137 additions and 132 deletions

View File

@@ -80,6 +80,7 @@ var Client = (function (_EventEmitter) {
this.options.shardId = options.shardId || 0;
this.options.shardCount = options.shardCount || 0;
this.options.disableEveryone = options.disableEveryone || false;
this.options.bot = options.bot === undefined || options.bot === true ? true : false;
if (typeof options.shardCount === "number" && typeof options.shardId === "number" && options.shardCount > 0) {
this.options.shard = [options.shardId, options.shardCount];