fix(Client): Emit Warning

fixed #253
This commit is contained in:
March 7th 2022-08-15 19:50:11 +07:00
parent b2d41d8002
commit 89349b9eac
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,7 @@
'use strict';
const EventEmitter = require('node:events');
const process = require('node:process');
const RESTManager = require('../rest/RESTManager');
const Options = require('../util/Options');
const Util = require('../util/Util');
@ -12,7 +13,9 @@ const Util = require('../util/Util');
class BaseClient extends EventEmitter {
constructor(options = {}) {
super();
if (options.intents) {
process.emitWarning('Intents is not available.', 'DeprecationWarning');
}
/**
* The options the client was instantiated with
* @type {ClientOptions}

View File

@ -244,10 +244,6 @@ class Client extends BaseClient {
this.options.messageSweepInterval * 1_000,
).unref();
}
if (this.options.intents) {
process.emitWarning('Intent is not available.', 'DeprecationWarning');
}
}
/**