oceanic.js 1.0.0-dev.cfa3b8b → 1.0.0-dev.ebd596a
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.
- package/README.md +5 -5
- package/dist/lib/Client.js +10 -10
- package/dist/lib/Constants.d.ts +2 -2
- package/dist/lib/Constants.js +4 -4
- package/dist/lib/gateway/Shard.js +251 -410
- package/dist/lib/gateway/ShardManager.js +3 -3
- package/dist/lib/rest/Bucket.js +2 -2
- package/dist/lib/rest/DiscordHTTPError.js +1 -1
- package/dist/lib/rest/DiscordRESTError.js +1 -1
- package/dist/lib/rest/RequestHandler.js +8 -8
- package/dist/lib/rest/SequentialBucket.js +1 -1
- package/dist/lib/routes/Channels.d.ts +2 -2
- package/dist/lib/routes/Channels.js +1 -1
- package/dist/lib/routes/Guilds.d.ts +2 -2
- package/dist/lib/routes/Guilds.js +5 -4
- package/dist/lib/routes/OAuth.js +3 -3
- package/dist/lib/structures/AnnouncementChannel.d.ts +1 -1
- package/dist/lib/structures/Application.d.ts +5 -3
- package/dist/lib/structures/Application.js +14 -6
- package/dist/lib/structures/ApplicationCommand.d.ts +5 -4
- package/dist/lib/structures/ApplicationCommand.js +15 -12
- package/dist/lib/structures/AuditLogEntry.d.ts +1 -1
- package/dist/lib/structures/AuditLogEntry.js +2 -2
- package/dist/lib/structures/AutoModerationRule.d.ts +5 -4
- package/dist/lib/structures/AutoModerationRule.js +15 -7
- package/dist/lib/structures/AutocompleteInteraction.d.ts +11 -8
- package/dist/lib/structures/AutocompleteInteraction.js +22 -11
- package/dist/lib/structures/CategoryChannel.d.ts +1 -1
- package/dist/lib/structures/CategoryChannel.js +8 -5
- package/dist/lib/structures/CommandInteraction.d.ts +10 -7
- package/dist/lib/structures/CommandInteraction.js +29 -18
- package/dist/lib/structures/ComponentInteraction.d.ts +11 -8
- package/dist/lib/structures/ComponentInteraction.js +29 -18
- package/dist/lib/structures/ForumChannel.d.ts +5 -3
- package/dist/lib/structures/ForumChannel.js +13 -7
- package/dist/lib/structures/GroupChannel.d.ts +9 -6
- package/dist/lib/structures/GroupChannel.js +17 -11
- package/dist/lib/structures/Guild.d.ts +21 -10
- package/dist/lib/structures/Guild.js +55 -37
- package/dist/lib/structures/GuildChannel.d.ts +4 -3
- package/dist/lib/structures/GuildChannel.js +17 -9
- package/dist/lib/structures/GuildPreview.js +2 -2
- package/dist/lib/structures/GuildScheduledEvent.d.ts +6 -3
- package/dist/lib/structures/GuildScheduledEvent.js +20 -9
- package/dist/lib/structures/GuildTemplate.d.ts +3 -2
- package/dist/lib/structures/GuildTemplate.js +19 -6
- package/dist/lib/structures/Integration.js +2 -3
- package/dist/lib/structures/Interaction.d.ts +4 -3
- package/dist/lib/structures/Interaction.js +7 -4
- package/dist/lib/structures/Invite.d.ts +8 -4
- package/dist/lib/structures/Invite.js +17 -6
- package/dist/lib/structures/Member.d.ts +3 -2
- package/dist/lib/structures/Member.js +18 -10
- package/dist/lib/structures/Message.d.ts +19 -10
- package/dist/lib/structures/Message.js +61 -40
- package/dist/lib/structures/ModalSubmitInteraction.d.ts +10 -7
- package/dist/lib/structures/ModalSubmitInteraction.js +29 -18
- package/dist/lib/structures/Permission.d.ts +1 -1
- package/dist/lib/structures/Permission.js +6 -6
- package/dist/lib/structures/PrivateChannel.d.ts +4 -3
- package/dist/lib/structures/PrivateChannel.js +8 -5
- package/dist/lib/structures/Role.d.ts +3 -2
- package/dist/lib/structures/Role.js +16 -8
- package/dist/lib/structures/StageChannel.d.ts +2 -2
- package/dist/lib/structures/StageChannel.js +8 -5
- package/dist/lib/structures/StageInstance.d.ts +8 -5
- package/dist/lib/structures/StageInstance.js +23 -9
- package/dist/lib/structures/Team.d.ts +1 -1
- package/dist/lib/structures/Team.js +3 -4
- package/dist/lib/structures/TextableChannel.d.ts +8 -7
- package/dist/lib/structures/TextableChannel.js +15 -9
- package/dist/lib/structures/ThreadChannel.d.ts +10 -7
- package/dist/lib/structures/ThreadChannel.js +23 -12
- package/dist/lib/structures/VoiceChannel.d.ts +4 -3
- package/dist/lib/structures/VoiceChannel.js +7 -4
- package/dist/lib/structures/VoiceState.d.ts +5 -3
- package/dist/lib/structures/VoiceState.js +12 -11
- package/dist/lib/structures/Webhook.d.ts +5 -4
- package/dist/lib/structures/Webhook.js +18 -15
- package/dist/lib/types/application-commands.d.ts +3 -2
- package/dist/lib/types/channels.d.ts +1 -1
- package/dist/lib/types/client.d.ts +1 -1
- package/dist/lib/types/events.d.ts +24 -24
- package/dist/lib/types/gateway.d.ts +2 -2
- package/dist/lib/types/guilds.d.ts +3 -0
- package/dist/lib/types/json.d.ts +46 -46
- package/dist/lib/types/scheduled-events.d.ts +2 -2
- package/dist/lib/util/InteractionOptionsWrapper.js +1 -1
- package/dist/lib/util/Routes.js +1 -1
- package/dist/lib/util/TypedCollection.js +4 -4
- package/dist/lib/util/Util.d.ts +1 -1
- package/dist/lib/util/Util.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -32,6 +32,8 @@ const Routes = __importStar(require("../util/Routes"));
|
|
|
32
32
|
class Webhook extends Base_1.default {
|
|
33
33
|
/** The application associatd with this webhook. */
|
|
34
34
|
application;
|
|
35
|
+
/** The ID of the application associatd with this webhook. */
|
|
36
|
+
applicationID;
|
|
35
37
|
/** The hash of this webhook's avatar. */
|
|
36
38
|
avatar;
|
|
37
39
|
/** The channel this webhook is for, if applicable. */
|
|
@@ -56,18 +58,19 @@ class Webhook extends Base_1.default {
|
|
|
56
58
|
user;
|
|
57
59
|
constructor(data, client) {
|
|
58
60
|
super(data.id, client);
|
|
59
|
-
this.application = data.application_id === null ? null : client.application
|
|
61
|
+
this.application = data.application_id === null ? null : client.application.id === data.application_id ? client.application : undefined;
|
|
62
|
+
this.applicationID = data.application_id;
|
|
60
63
|
this.avatar = data.avatar ?? null;
|
|
61
64
|
this.channel = data.channel_id === null ? null : client.getChannel(data.channel_id);
|
|
62
65
|
this.channelID = data.channel_id;
|
|
63
|
-
this.guild =
|
|
66
|
+
this.guild = data.guild_id === undefined || data.guild_id === null ? null : client.guilds.get(data.guild_id);
|
|
64
67
|
this.guildID = data.guild_id ?? null;
|
|
65
68
|
this.name = data.name;
|
|
66
69
|
this.sourceChannel = data.source_channel;
|
|
67
70
|
this.sourceGuild = data.source_guild;
|
|
68
71
|
this.token = data.token;
|
|
69
72
|
this.type = data.type;
|
|
70
|
-
this.user =
|
|
73
|
+
this.user = data.user === undefined ? null : client.users.update(data.user);
|
|
71
74
|
}
|
|
72
75
|
get url() {
|
|
73
76
|
return `${Constants_1.BASE_URL}${Routes.WEBHOOK(this.id, this.token)}`;
|
|
@@ -94,7 +97,7 @@ class Webhook extends Base_1.default {
|
|
|
94
97
|
* @param token The token for the webhook, if not already present.
|
|
95
98
|
*/
|
|
96
99
|
async deleteMessage(messageID, options, token) {
|
|
97
|
-
const t = this.token
|
|
100
|
+
const t = this.token ?? token;
|
|
98
101
|
if (!t) {
|
|
99
102
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
100
103
|
}
|
|
@@ -105,7 +108,7 @@ class Webhook extends Base_1.default {
|
|
|
105
108
|
* @param token The token for the webhook, if not already present.
|
|
106
109
|
*/
|
|
107
110
|
async deleteToken(token) {
|
|
108
|
-
const t = this.token
|
|
111
|
+
const t = this.token ?? token;
|
|
109
112
|
if (!t) {
|
|
110
113
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
111
114
|
}
|
|
@@ -126,7 +129,7 @@ class Webhook extends Base_1.default {
|
|
|
126
129
|
* @param options The options for editing the message.
|
|
127
130
|
*/
|
|
128
131
|
async editMessage(messageID, options, token) {
|
|
129
|
-
const t = this.token
|
|
132
|
+
const t = this.token ?? token;
|
|
130
133
|
if (!t) {
|
|
131
134
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
132
135
|
}
|
|
@@ -138,28 +141,28 @@ class Webhook extends Base_1.default {
|
|
|
138
141
|
* @param token The token for the webhook, if not already present.
|
|
139
142
|
*/
|
|
140
143
|
async editToken(options, token) {
|
|
141
|
-
const t = this.token
|
|
144
|
+
const t = this.token ?? token;
|
|
142
145
|
if (!t) {
|
|
143
146
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
144
147
|
}
|
|
145
148
|
return this.client.rest.webhooks.editToken(this.id, t, options);
|
|
146
149
|
}
|
|
147
150
|
async execute(options, token) {
|
|
148
|
-
const t = this.token
|
|
151
|
+
const t = this.token ?? token;
|
|
149
152
|
if (!t) {
|
|
150
153
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
151
154
|
}
|
|
152
155
|
return this.client.rest.webhooks.execute(this.id, t, options);
|
|
153
156
|
}
|
|
154
157
|
async executeGithub(options, token) {
|
|
155
|
-
const t = this.token
|
|
158
|
+
const t = this.token ?? token;
|
|
156
159
|
if (!t) {
|
|
157
160
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
158
161
|
}
|
|
159
162
|
return this.client.rest.webhooks.executeGithub(this.id, t, options);
|
|
160
163
|
}
|
|
161
164
|
async executeSlack(options, token) {
|
|
162
|
-
const t = this.token
|
|
165
|
+
const t = this.token ?? token;
|
|
163
166
|
if (!t) {
|
|
164
167
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
165
168
|
}
|
|
@@ -172,7 +175,7 @@ class Webhook extends Base_1.default {
|
|
|
172
175
|
* @param token The token for the webhook, if not already present.
|
|
173
176
|
*/
|
|
174
177
|
async getMessage(messageID, threadID, token) {
|
|
175
|
-
const t = this.token
|
|
178
|
+
const t = this.token ?? token;
|
|
176
179
|
if (!t) {
|
|
177
180
|
throw new Error("Token is not present on webhook, and was not provided in options.");
|
|
178
181
|
}
|
|
@@ -189,10 +192,10 @@ class Webhook extends Base_1.default {
|
|
|
189
192
|
toJSON() {
|
|
190
193
|
return {
|
|
191
194
|
...super.toJSON(),
|
|
192
|
-
|
|
195
|
+
applicationID: this.applicationID,
|
|
193
196
|
avatar: this.avatar,
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
channelID: this.channelID ?? null,
|
|
198
|
+
guildID: this.guildID,
|
|
196
199
|
name: this.name,
|
|
197
200
|
sourceChannel: this.sourceChannel,
|
|
198
201
|
sourceGuild: this.sourceGuild,
|
|
@@ -203,4 +206,4 @@ class Webhook extends Base_1.default {
|
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
208
|
exports.default = Webhook;
|
|
206
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
209
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2ViaG9vay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9zdHJ1Y3R1cmVzL1dlYmhvb2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGtEQUEwQjtBQU8xQiw0Q0FBd0M7QUFDeEMsdURBQXlDO0FBYXpDLE1BQXFCLE9BQVEsU0FBUSxjQUFJO0lBQ3JDLG1EQUFtRDtJQUNuRCxXQUFXLENBQTRCO0lBQ3ZDLDZEQUE2RDtJQUM3RCxhQUFhLENBQWdCO0lBQzdCLHlDQUF5QztJQUN6QyxNQUFNLENBQWdCO0lBQ3RCLHNEQUFzRDtJQUN0RCxPQUFPLENBQThCO0lBQ3JDLGdFQUFnRTtJQUNoRSxTQUFTLENBQWdCO0lBQ3pCLG9EQUFvRDtJQUNwRCxLQUFLLENBQWdCO0lBQ3JCLDZEQUE2RDtJQUM3RCxPQUFPLENBQWdCO0lBQ3ZCLDRDQUE0QztJQUM1QyxJQUFJLENBQWdCO0lBQ3BCLG1FQUFtRTtJQUNuRSxhQUFhLENBQW1DO0lBQ2hELGlFQUFpRTtJQUNqRSxXQUFXLENBQTBDO0lBQ3JELDBGQUEwRjtJQUMxRixLQUFLLENBQVU7SUFDZixzSEFBc0g7SUFDdEgsSUFBSSxDQUFlO0lBQ25CLDBDQUEwQztJQ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xFQUFFLElBQUksQ0FBQyxhQUFhO1lBQ2pDLFdBQVcsRUFBSSxJQUFJLENBQUMsV0FBVztZQUMvQixLQUFLLEVBQVUsSUFBSSxDQUFDLEtBQUs7WUFDekIsSUFBSSxFQUFXLElBQUksQ0FBQyxJQUFJO1lBQ3hCLElBQUksRUFBVyxJQUFJLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRTtTQUNyQyxDQUFDO0lBQ04sQ0FBQztDQUNKO0FBbE5ELDBCQWtOQyJ9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExclusifyUnion } from "./shared";
|
|
2
2
|
import type { ApplicationCommandOptionTypes, ApplicationCommandPermissionTypes, ApplicationCommandTypes, GuildChannelTypes } from "../Constants";
|
|
3
3
|
import type ApplicationCommand from "../structures/ApplicationCommand";
|
|
4
4
|
import type ClientApplication from "../structures/ClientApplication";
|
|
@@ -194,7 +194,8 @@ export interface RESTGuildApplicationCommandPermissions {
|
|
|
194
194
|
permissions: Array<ApplicationCommandPermission>;
|
|
195
195
|
}
|
|
196
196
|
export interface GuildApplicationCommandPermissions {
|
|
197
|
-
application
|
|
197
|
+
application?: ClientApplication;
|
|
198
|
+
applicationID: string;
|
|
198
199
|
id: string;
|
|
199
200
|
permissions: Array<ApplicationCommandPermission>;
|
|
200
201
|
}
|
|
@@ -858,5 +858,5 @@ export interface ForumEmoji {
|
|
|
858
858
|
name: string | null;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
export type PossiblyUncachedMessage = Message | { channel: AnyTextChannel | Uncached;
|
|
861
|
+
export type PossiblyUncachedMessage = Message | { channel: AnyTextChannel | Uncached; } & Uncached;
|
|
862
862
|
export type PossiblyUncachedThread = AnyThreadChannel | Pick<AnyThreadChannel, "id" | "type"> & { parentID: string; };
|
|
@@ -68,7 +68,7 @@ export interface RESTOptions {
|
|
|
68
68
|
requestTimeout?: number;
|
|
69
69
|
/**
|
|
70
70
|
* The `User-Agent` header to use for requests.
|
|
71
|
-
* @defaultValue Oceanic/\{VERSION\} (https://github.com/
|
|
71
|
+
* @defaultValue Oceanic/\{VERSION\} (https://github.com/OceanicJS/Oceanic)
|
|
72
72
|
*/
|
|
73
73
|
userAgent?: string;
|
|
74
74
|
}
|
|
@@ -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";
|
|
@@ -59,9 +59,9 @@ import type StageInstance from "../structures/StageInstance";
|
|
|
59
59
|
|
|
60
60
|
export interface ClientEvents {
|
|
61
61
|
/** @event Emitted when an application command's permissions are updated. */
|
|
62
|
-
applicationCommandPermissionsUpdate: [guild: Guild, permissions: GuildApplicationCommandPermissions];
|
|
62
|
+
applicationCommandPermissionsUpdate: [guild: Guild | Uncached, permissions: GuildApplicationCommandPermissions];
|
|
63
63
|
/** @event Emitted when an auto moderation action is executed. Requires the `AUTO_MODERATION_EXECUTION` intent. */
|
|
64
|
-
autoModerationActionExecution: [guild: Guild, channel: AnyGuildTextChannel | Uncached | null, user: User | Uncached, executionOptions: AutoModerationActionExecution];
|
|
64
|
+
autoModerationActionExecution: [guild: Guild | Uncached, channel: AnyGuildTextChannel | Uncached | null, user: User | Uncached, executionOptions: AutoModerationActionExecution];
|
|
65
65
|
/** @event Emitted when an auto moderation rule is created. Requires the `AUTO_MODERATION_CONFIGURATION` intent. */
|
|
66
66
|
autoModerationRuleCreate: [rule: AutoModerationRule];
|
|
67
67
|
/** @event Emitted when an auto moderation rule is deleted. Requires the `AUTO_MODERATION_CONFIGURATION` intent. */
|
|
@@ -73,7 +73,7 @@ export interface ClientEvents {
|
|
|
73
73
|
/** @event Emitted when channel is deleted. Requires the `GUILDS` intent. */
|
|
74
74
|
channelDelete: [channel: AnyGuildChannelWithoutThreads];
|
|
75
75
|
/** @event Emitted when a channel's pins are updated (message pinned, message unpinned). Requires the `GUILDS` intent for guild channels, and `DIRECT_MESSAGES` for direct messages. */
|
|
76
|
-
channelPinsUpdate: [channel: AnyTextChannel, timestamp: Date | null];
|
|
76
|
+
channelPinsUpdate: [channel: AnyTextChannel | Uncached, timestamp: Date | null];
|
|
77
77
|
/** @event Emitted when a channel is updated. Requires the `GUILDS` intent. */
|
|
78
78
|
channelUpdate: [channel: TextChannel, oldChannel: JSONTextChannel | null] | [channel: VoiceChannel, oldChannel: JSONVoiceChannel | null] | [channel: CategoryChannel, oldChannel: JSONCategoryChannel | null] | [channel: AnnouncementChannel, oldChannel: JSONAnnouncementChannel | null] | [channel: StageChannel, oldChannel: JSONStageChannel | null];
|
|
79
79
|
/** @event Emitted when a shard connects. */
|
|
@@ -84,24 +84,24 @@ export interface ClientEvents {
|
|
|
84
84
|
disconnect: [];
|
|
85
85
|
/** @event Emitted when an error happens. */
|
|
86
86
|
error: [info: Error | string, shard?: number];
|
|
87
|
-
/** @event
|
|
87
|
+
/** @event Emitted when a guild becoms available. Requires the `GUILDS` intent. */
|
|
88
88
|
guildAvailable: [guild: Guild];
|
|
89
89
|
/** @event Emitted when a guild ban is created. Requires the `GUILD_BANS` intent. */
|
|
90
|
-
guildBanAdd: [guild: Guild, user: User];
|
|
90
|
+
guildBanAdd: [guild: Guild | Uncached, user: User];
|
|
91
91
|
/** @event Emitted when a guild ban is revoked. Requires the `GUILD_BANS` intent. */
|
|
92
|
-
guildBanRemove: [guild: Guild, user: User];
|
|
92
|
+
guildBanRemove: [guild: Guild | Uncached, user: User];
|
|
93
93
|
/** @event Emitted when the client joins a new guild. Requires the `GUILDS` intent. */
|
|
94
94
|
guildCreate: [guild: Guild];
|
|
95
95
|
/** @event Emitted when the client leaves a guild. Requires the `GUILDS` intent. */
|
|
96
96
|
guildDelete: [guild: Guild | Uncached];
|
|
97
97
|
/** @event Emitted when a guild's emojis are updated. Requires the `GUILD_EMOJIS_AND_STICKERS` intent. */
|
|
98
|
-
guildEmojisUpdate: [guild: Guild, emojis: Array<GuildEmoji>, oldEmojis: Array<GuildEmoji>];
|
|
98
|
+
guildEmojisUpdate: [guild: Guild | Uncached, emojis: Array<GuildEmoji>, oldEmojis: Array<GuildEmoji> | null];
|
|
99
99
|
/** @event Emitted when a guild's integrations are updated. Requires the `GUILD_INTEGRATOPMS` intent. */
|
|
100
|
-
guildIntegrationsUpdate: [guild: Guild];
|
|
100
|
+
guildIntegrationsUpdate: [guild: Guild | Uncached];
|
|
101
101
|
/** @event Emitted when a member joins a guild. Requires the `GUILD_MEMBERS` intent. */
|
|
102
102
|
guildMemberAdd: [member: Member];
|
|
103
103
|
/** @event Emitted when a chunk of guild members is received from Discord. */
|
|
104
|
-
guildMemberChunk: [
|
|
104
|
+
guildMemberChunk: [members: Array<Member>];
|
|
105
105
|
/** @event Emitted when a member leaves a guild. Requires the `GUILD_MEMBERS` intent. If the member is uncached, the first parameter will be a user. If the guild is uncached, the first parameter will be a user, and the second will be an object with only an `id`. */
|
|
106
106
|
guildMemberRemove: [member: Member | User, guild: Guild | Uncached];
|
|
107
107
|
/** @event Emitted when a guild member is updates. Requires the `GUILD_MEMBERS` intent.*/
|
|
@@ -109,7 +109,7 @@ export interface ClientEvents {
|
|
|
109
109
|
/** @event Emitted when a role is created. Requires the `GUILDS` intent. */
|
|
110
110
|
guildRoleCreate: [role: Role];
|
|
111
111
|
/** @event Emitted when a role is deleted. Requires the `GUILDS` intent. */
|
|
112
|
-
guildRoleDelete: [role: Role];
|
|
112
|
+
guildRoleDelete: [role: Role | Uncached];
|
|
113
113
|
/** @event Emitted when a role is updated. Requires the `GUILDS` intent. */
|
|
114
114
|
guildRoleUpdate: [role: Role, oldRole: JSONRole | null];
|
|
115
115
|
/** @event Emitted when a scheduled event is created. Requires the `GUILD_SCHEDULED_EVENTS` intent. */
|
|
@@ -123,7 +123,7 @@ export interface ClientEvents {
|
|
|
123
123
|
/** @event Emitted when a user unsubscribes from a scheduled event. Requires the `GUILD_SCHEDULED_EVENTS` intent. */
|
|
124
124
|
guildScheduledEventUserRemove: [event: GuildScheduledEvent | Uncached, user: User | Uncached];
|
|
125
125
|
/** @event Emitted when a guild's stickers are updated. Requires the `GUILD_EMOJIS_AND_STICKERS` intent. */
|
|
126
|
-
guildStickersUpdate: [guild: Guild, stickers: Array<Sticker>, oldStickers: Array<Sticker>];
|
|
126
|
+
guildStickersUpdate: [guild: Guild | Uncached, stickers: Array<Sticker>, oldStickers: Array<Sticker> | null];
|
|
127
127
|
/** @event Emitted when a guild becomes unavailable. Requires the `GUILDS` intent. */
|
|
128
128
|
guildUnavailable: [guild: UnavailableGuild];
|
|
129
129
|
/** @event Emitted when a guild is updated. Requires the `GUILDS` intent. */
|
|
@@ -131,17 +131,17 @@ export interface ClientEvents {
|
|
|
131
131
|
/** @event Emitted when a shard receives the HELLO packet. */
|
|
132
132
|
hello: [interval: number, shard: number];
|
|
133
133
|
/** @event Emitted when an integration is created. Requires the `GUILD_INTEGRATIONS` intent. */
|
|
134
|
-
integrationCreate: [guild: Guild, integration: Integration];
|
|
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, integration: Integration |
|
|
136
|
+
integrationDelete: [guild: Guild | Uncached, integration: Integration | PossiblyUncachedIntegration];
|
|
137
137
|
/** @event Emitted when an integration is updated. Requires the `GUILD_INTEGRATIONS` intent. */
|
|
138
|
-
integrationUpdate: [guild: Guild, integration: Integration, oldIntegration: JSONIntegration | null];
|
|
138
|
+
integrationUpdate: [guild: Guild | Uncached, integration: Integration, oldIntegration: JSONIntegration | null];
|
|
139
139
|
/** @event Emitted when an interaction is created. */
|
|
140
140
|
interactionCreate: [interaction: AnyInteractionGateway];
|
|
141
141
|
/** @event Emitted when an invite is created. Requires the `GUILD_INVITES` intent. */
|
|
142
|
-
inviteCreate: [guild: Guild | null, channel: InviteChannel, invite: Invite];
|
|
142
|
+
inviteCreate: [guild: Guild | Uncached | null, channel: InviteChannel | Uncached, invite: Invite];
|
|
143
143
|
/** @event Emitted when an invite is deleted. Requires the `GUILD_INVITES` intent. */
|
|
144
|
-
inviteDelete: [guild: Guild | null, channel: InviteChannel, code: string];
|
|
144
|
+
inviteDelete: [guild: Guild | Uncached | null, channel: InviteChannel | Uncached, code: string];
|
|
145
145
|
/** @event Emitted when a message is created. Requires the `GUILD_MESSAGES` intent for guild messages, `DIRECT_MESSAGES` for direct messages. The `MESSAGE_CONTENT` intent is required for `content`, `embeds`, and similar to be present on most messages. */
|
|
146
146
|
messageCreate: [message: Message];
|
|
147
147
|
/** @event Emitted when a message is created. Requires the `GUILD_MESSAGES` intent for guild messages, `DIRECT_MESSAGES` for direct messages. The `MESSAGE_CONTENT` intent is required for `content`, `embeds`, and similar to be present on most messages. */
|
|
@@ -161,7 +161,7 @@ export interface ClientEvents {
|
|
|
161
161
|
/** @event Emitted when a raw dispatch packet is received. */
|
|
162
162
|
packet: [data: AnyDispatchPacket, shard: number];
|
|
163
163
|
/** @event Emitted when a guild member's presence, or user is updated. Requires the `GUILD_PRESENCES` intent. */
|
|
164
|
-
presenceUpdate: [guild: Guild, member: Member, presence: Presence, oldPresence: Presence | null];
|
|
164
|
+
presenceUpdate: [guild: Guild | Uncached, member: Member | Uncached, presence: Presence, oldPresence: Presence | null];
|
|
165
165
|
/** @event Emitted when all shards are ready. */
|
|
166
166
|
ready: [];
|
|
167
167
|
/** @event Emitted when a request is made. */
|
|
@@ -187,9 +187,9 @@ export interface ClientEvents {
|
|
|
187
187
|
/** @event Emitted when a guild's threads are synced. Requires the `GUILDS` intent. */
|
|
188
188
|
threadListSync: [threads: Array<AnyThreadChannel>, members: Array<ThreadMember>];
|
|
189
189
|
/** @event Emitted when a thread member is updated. Requires the `GUILDS` intent. */
|
|
190
|
-
threadMemberUpdate: [thread: AnyThreadChannel, member: ThreadMember, oldMember: ThreadMember | null];
|
|
190
|
+
threadMemberUpdate: [thread: AnyThreadChannel | Uncached, member: ThreadMember, oldMember: ThreadMember | null];
|
|
191
191
|
/** @event Emitted when the members of a thread are updated. Requires the `GUILDS` intent. The received information will be different if `GUILD_MEMBERS` is also used. */
|
|
192
|
-
threadMembersUpdate: [thread: AnyThreadChannel, addedMembers: Array<ThreadMember>, removedMembers: Array<ThreadMember>];
|
|
192
|
+
threadMembersUpdate: [thread: AnyThreadChannel | Uncached, addedMembers: Array<ThreadMember>, removedMembers: Array<ThreadMember | Uncached>];
|
|
193
193
|
/** @event Emitted when a thread is updated. Requires the `GUILDS` intent. */
|
|
194
194
|
threadUpdate: [thread: AnnouncementThreadChannel, oldThread: JSONAnnouncementThreadChannel] | [thread: PublicThreadChannel, oldThread: JSONPublicThreadChannel | null] | [thread: PrivateThreadChannel | null, oldThread: JSONPrivateThreadChannel | null];
|
|
195
195
|
/** @event Emitted when a user starts typing. Requires the `GUILD_MESSAGE_TYPING` for guilds, and `DIRECT_MESSAGE_TYPING` for direct messages. */
|
|
@@ -199,17 +199,17 @@ export interface ClientEvents {
|
|
|
199
199
|
/** @event Emitted when a user is updated. */
|
|
200
200
|
userUpdate: [user: User, oldUser: JSONUser | null];
|
|
201
201
|
/** @event Emitted when a user joins a voice channel. Requires the `GUILD_VOICE_STATES` intent. */
|
|
202
|
-
voiceChannelJoin: [member: Member, channel: VoiceChannel | StageChannel];
|
|
202
|
+
voiceChannelJoin: [member: Member, channel: VoiceChannel | StageChannel | Uncached];
|
|
203
203
|
/** @event Emitted when a user leaves a voice channel. Requires the `GUILD_VOICE_STATES` intent. */
|
|
204
|
-
voiceChannelLeave: [member: Member, channel: VoiceChannel | StageChannel];
|
|
204
|
+
voiceChannelLeave: [member: Member, channel: VoiceChannel | StageChannel | Uncached];
|
|
205
205
|
/** @event Emitted when a user switches voice channels. Requires the `GUILD_VOICE_STATES` intent. */
|
|
206
|
-
voiceChannelSwitch: [member: Member, channel: VoiceChannel | StageChannel, oldChannel: VoiceChannel | StageChannel | null];
|
|
206
|
+
voiceChannelSwitch: [member: Member, channel: VoiceChannel | StageChannel | Uncached, oldChannel: VoiceChannel | StageChannel | Uncached | null];
|
|
207
207
|
/** @event Emitted when a user's voice state is updated. Requires the `GUILD_VOICE_STATES` intent. */
|
|
208
208
|
voiceStateUpdate: [member: Member, oldState: JSONVoiceState | null];
|
|
209
209
|
/** @event Emitted with various warning information. */
|
|
210
210
|
warn: [info: string, shard?: number];
|
|
211
211
|
/** @event Emitted when a guild's webhooks are updated. Requires the `GUILD_WEBHOOKS` intent. */
|
|
212
|
-
webhooksUpdate: [guild: Guild, channel: AnyGuildChannelWithoutThreads | Uncached];
|
|
212
|
+
webhooksUpdate: [guild: Guild | Uncached, channel: AnyGuildChannelWithoutThreads | Uncached];
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
export interface ShardEvents {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RawUser } from "./users";
|
|
2
2
|
import type { AutoModerationAction, RawAutoModerationAction } from "./auto-moderation";
|
|
3
|
-
import type { Uncached } from "./shared";
|
|
4
3
|
import type { ActivityTypes, AutoModerationTriggerTypes, IntentNames } from "../Constants";
|
|
5
4
|
import type AutoModerationRule from "../structures/AutoModerationRule";
|
|
6
5
|
import type { ClientOptions as WSClientOptions } from "ws";
|
|
@@ -264,7 +263,8 @@ export interface AutoModerationActionExecution {
|
|
|
264
263
|
matchedContent: string;
|
|
265
264
|
matchedKeyword: string | null;
|
|
266
265
|
messageID?: string;
|
|
267
|
-
rule
|
|
266
|
+
rule?: AutoModerationRule;
|
|
267
|
+
ruleID: string;
|
|
268
268
|
ruleTriggerType: AutoModerationTriggerTypes;
|
|
269
269
|
}
|
|
270
270
|
|
|
@@ -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; };
|