Added some extra settings to speed up the client
This commit is contained in:
parent
02df085580
commit
58f305dbbc
1 changed files with 18 additions and 1 deletions
|
@ -1,6 +1,23 @@
|
||||||
// separate the client from app.js so we can call it later
|
// separate the client from app.js so we can call it later
|
||||||
const { Client } = require("eris");
|
const { Client } = require("eris");
|
||||||
const client = new Client(process.env.TOKEN, {
|
const client = new Client(process.env.TOKEN, {
|
||||||
defaultImageSize: 1024
|
defaultImageSize: 1024,
|
||||||
|
disableEvents: {
|
||||||
|
CHANNEL_CREATE: true,
|
||||||
|
CHANNEL_DELETE: true,
|
||||||
|
CHANNEL_UPDATE: true,
|
||||||
|
GUILD_BAN_REMOVE: true,
|
||||||
|
GUILD_MEMBER_ADD: true,
|
||||||
|
GUILD_MEMBER_REMOVE: true,
|
||||||
|
GUILD_MEMBER_UPDATE: true,
|
||||||
|
GUILD_ROLE_CREATE: true,
|
||||||
|
GUILD_ROLE_DELETE: true,
|
||||||
|
GUILD_ROLE_UPDATE: true,
|
||||||
|
TYPING_START: true,
|
||||||
|
USER_UPDATE: true,
|
||||||
|
VOICE_STATE_UPDATE: true
|
||||||
|
},
|
||||||
|
maxShards: "auto",
|
||||||
|
opusOnly: true
|
||||||
});
|
});
|
||||||
module.exports = client;
|
module.exports = client;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue