diff --git a/lib/Client.ts b/lib/Client.ts index a11e73a7..e8bbe173 100644 --- a/lib/Client.ts +++ b/lib/Client.ts @@ -262,7 +262,7 @@ export default class Client extends Typed * @param fakeReady If the client should emit a ready event. Defaults to true. */ async restMode(fakeReady = true): Promise { - this._application ??= await this.rest.misc.getClientApplication(); + this._application ??= await this.rest.applications.getCurrent(); this._user ??= await this.rest.oauth.getCurrentUser(); this.options.restMode = true; if (fakeReady) { diff --git a/lib/gateway/ShardManager.ts b/lib/gateway/ShardManager.ts index 14e934ca..03eba6b3 100644 --- a/lib/gateway/ShardManager.ts +++ b/lib/gateway/ShardManager.ts @@ -182,7 +182,7 @@ export default class ShardManager extends Collection { /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */ if (this.options.removeDisallowedIntents && privilegedIntentMapping.some(([intent]) => (this.options.intents & intent) === intent)) { - const { flags } = await this.#client.rest.misc.getApplication(); + const { flags } = await this.#client.rest.applications.getCurrent(); const check = (intent: Intents, allowed: Array): void => { if ((this.options.intents & intent) === intent && !allowed.some(flag => (flags & flag) === flag)) { this.#client.emit("warn", `removeDisallowedIntents is enabled, and ${Intents[intent]} was included but not found to be allowed. It has been removed.`); diff --git a/package.json b/package.json index aa7dbf30..f18ba200 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oceanic.js", - "version": "1.9.0", + "version": "1.10.0", "description": "A NodeJS library for interfacing with Discord.", "main": "./dist/lib/index.js", "types": "./dist/lib/index.d.ts",