mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Intents
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const { XIAO_TOKEN, OWNERS, XIAO_PREFIX, INVITE } = process.env;
|
const { XIAO_TOKEN, OWNERS, XIAO_PREFIX, INVITE } = process.env;
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const { Intents } = require('discord.js');
|
||||||
const Client = require('./structures/Client');
|
const Client = require('./structures/Client');
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
commandPrefix: XIAO_PREFIX,
|
commandPrefix: XIAO_PREFIX,
|
||||||
owner: OWNERS.split(','),
|
owner: OWNERS.split(','),
|
||||||
invite: INVITE,
|
invite: INVITE,
|
||||||
disableMentions: 'everyone',
|
disableMentions: 'everyone',
|
||||||
disabledEvents: ['TYPING_START']
|
ws: { intents: Intents.ALL }
|
||||||
});
|
});
|
||||||
const { formatNumber } = require('./util/Util');
|
const { formatNumber } = require('./util/Util');
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "114.8.5",
|
"version": "114.8.6",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
"utf-8-validate": "^5.0.2"
|
"utf-8-validate": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.0.0",
|
||||||
"eslint-config-amber": "^2.0.3",
|
"eslint-config-amber": "^2.0.3",
|
||||||
"eslint-plugin-json": "^2.1.1"
|
"eslint-plugin-json": "^2.1.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user