mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Add disableEveryone option (#400)
* Added support for new game objects bot.setStreaming(name, url, type, callback); added logic for Internal setStatus updated to check if string or object * Add disableEveryone option * forgot to compile oh well, it can be squash merged
This commit is contained in:
@@ -79,6 +79,7 @@ var Client = (function (_EventEmitter) {
|
||||
this.options.guildCreateTimeout = options.guildCreateTimeout || 1000;
|
||||
this.options.shardId = options.shardId || 0;
|
||||
this.options.shardCount = options.shardCount || 0;
|
||||
this.options.disableEveryone = options.disableEveryone || false;
|
||||
|
||||
if (typeof options.shardCount === "number" && typeof options.shardId === "number" && options.shardCount > 0) {
|
||||
this.options.shard = [options.shardId, options.shardCount];
|
||||
|
||||
Reference in New Issue
Block a user