parent
b2d41d8002
commit
89349b9eac
@ -1,6 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const EventEmitter = require('node:events');
|
const EventEmitter = require('node:events');
|
||||||
|
const process = require('node:process');
|
||||||
const RESTManager = require('../rest/RESTManager');
|
const RESTManager = require('../rest/RESTManager');
|
||||||
const Options = require('../util/Options');
|
const Options = require('../util/Options');
|
||||||
const Util = require('../util/Util');
|
const Util = require('../util/Util');
|
||||||
@ -12,7 +13,9 @@ const Util = require('../util/Util');
|
|||||||
class BaseClient extends EventEmitter {
|
class BaseClient extends EventEmitter {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
super();
|
super();
|
||||||
|
if (options.intents) {
|
||||||
|
process.emitWarning('Intents is not available.', 'DeprecationWarning');
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* The options the client was instantiated with
|
* The options the client was instantiated with
|
||||||
* @type {ClientOptions}
|
* @type {ClientOptions}
|
||||||
|
@ -244,10 +244,6 @@ class Client extends BaseClient {
|
|||||||
this.options.messageSweepInterval * 1_000,
|
this.options.messageSweepInterval * 1_000,
|
||||||
).unref();
|
).unref();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.intents) {
|
|
||||||
process.emitWarning('Intent is not available.', 'DeprecationWarning');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user