diff --git a/src/client/BaseClient.js b/src/client/BaseClient.js index 3bf037f..cedb9f9 100644 --- a/src/client/BaseClient.js +++ b/src/client/BaseClient.js @@ -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} diff --git a/src/client/Client.js b/src/client/Client.js index 81bfbe4..782352e 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -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'); - } } /**