Skip to content

Commit

Permalink
v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Mar 19, 2024
1 parent 65ca7e8 commit f6d78c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default class Client<E extends ClientEvents = ClientEvents> extends Typed
* @param fakeReady If the client should emit a ready event. Defaults to true.
*/
async restMode(fakeReady = true): Promise<this> {
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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/gateway/ShardManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class ShardManager extends Collection<number, Shard> {

/* 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<ApplicationFlags>): 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.`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f6d78c2

Please sign in to comment.