oceanic.js 1.0.0-dev.e30ffe9 → 1.0.0-dev.ed93e24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ import type {
33
33
  JSONVoiceState
34
34
  } from "./json";
35
35
  import type { GuildApplicationCommandPermissions } from "./application-commands";
36
- import type { GuildEmoji, PartialEmoji, Sticker } from "./guilds";
36
+ import type { GuildEmoji, PartialEmoji, Sticker, PossiblyUncachedIntegration } from "./guilds";
37
37
  import type { AnyInteractionGateway } from "./interactions";
38
38
  import type Guild from "../structures/Guild";
39
39
  import type UnavailableGuild from "../structures/UnavailableGuild";
@@ -133,7 +133,7 @@ export interface ClientEvents {
133
133
  /** @event Emitted when an integration is created. Requires the `GUILD_INTEGRATIONS` intent. */
134
134
  integrationCreate: [guild: Guild | Uncached, integration: Integration];
135
135
  /** @event Emitted when an integration is deleted. Requires the `GUILD_INTEGRATIONS` intent. */
136
- integrationDelete: [guild: Guild | Uncached, integration: Integration | { applicationID?: string; id: string; }];
136
+ integrationDelete: [guild: Guild | Uncached, integration: Integration | PossiblyUncachedIntegration];
137
137
  /** @event Emitted when an integration is updated. Requires the `GUILD_INTEGRATIONS` intent. */
138
138
  integrationUpdate: [guild: Guild | Uncached, integration: Integration, oldIntegration: JSONIntegration | null];
139
139
  /** @event Emitted when an interaction is created. */
@@ -31,6 +31,7 @@ import type {
31
31
  VideoQualityModes
32
32
  } from "../Constants";
33
33
  import type User from "../structures/User";
34
+ import type Integration from "../structures/Integration";
34
35
  import type TextChannel from "../structures/TextChannel";
35
36
  import type VoiceChannel from "../structures/VoiceChannel";
36
37
  import type CategoryChannel from "../structures/CategoryChannel";
@@ -600,3 +601,5 @@ export interface RawGuild {
600
601
  afkTimeout: number;
601
602
  applicationID: string | null;
602
603
  }
604
+
605
+ export type PossiblyUncachedIntegration = Integration | { applicationID?: string; id: string; };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oceanic.js",
3
- "version": "1.0.0-dev.e30ffe9",
3
+ "version": "1.0.0-dev.ed93e24",
4
4
  "description": "A NodeJS library for interfacing with Discord.",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oceanic.js",
3
- "version": "1.0.0-dev.e30ffe9",
3
+ "version": "1.0.0-dev.ed93e24",
4
4
  "description": "A NodeJS library for interfacing with Discord.",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",