seyfert 2.1.1-dev-11992998621.0 → 2.1.1-dev-12031800933.0
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/lib/cache/index.d.ts +1 -1
- package/lib/client/transformers.d.ts +1 -3
- package/lib/client/transformers.js +2 -4
- package/lib/common/shorters/application.d.ts +2 -2
- package/lib/common/shorters/bans.d.ts +2 -2
- package/lib/events/hooks/entitlement.d.ts +3 -3
- package/lib/structures/index.d.ts +2 -0
- package/lib/structures/index.js +2 -0
- package/lib/websocket/discord/shard.js +2 -2
- package/package.json +1 -1
package/lib/cache/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type CustomStructures, OptionResolver } from '../commands';
|
|
2
2
|
import type { StructStates } from '../common/';
|
|
3
|
-
import { AnonymousGuild, AutoModerationRule, BaseChannel, BaseGuildChannel, CategoryChannel, ClientUser, DMChannel, DirectoryChannel, ForumChannel, Guild, GuildEmoji, GuildMember, GuildRole, GuildTemplate, InteractionGuildMember, MediaChannel, Message, NewsChannel, Poll, StageChannel, Sticker, TextGuildChannel, ThreadChannel, User, VoiceChannel, VoiceState, Webhook, WebhookMessage } from '../structures';
|
|
4
|
-
import { Entitlement } from '../structures/Entitlement';
|
|
5
|
-
import { GuildBan } from '../structures/GuildBan';
|
|
3
|
+
import { AnonymousGuild, AutoModerationRule, BaseChannel, BaseGuildChannel, CategoryChannel, ClientUser, DMChannel, DirectoryChannel, Entitlement, ForumChannel, Guild, GuildBan, GuildEmoji, GuildMember, GuildRole, GuildTemplate, InteractionGuildMember, MediaChannel, Message, NewsChannel, Poll, StageChannel, Sticker, TextGuildChannel, ThreadChannel, User, VoiceChannel, VoiceState, Webhook, WebhookMessage } from '../structures';
|
|
6
4
|
import type { ChannelType } from '../types';
|
|
7
5
|
export type PollStructure = InferCustomStructure<Poll, 'Poll'>;
|
|
8
6
|
export type ClientUserStructure = InferCustomStructure<ClientUser, 'ClientUser'>;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Transformers = void 0;
|
|
4
4
|
const commands_1 = require("../commands");
|
|
5
5
|
const structures_1 = require("../structures");
|
|
6
|
-
const Entitlement_1 = require("../structures/Entitlement");
|
|
7
|
-
const GuildBan_1 = require("../structures/GuildBan");
|
|
8
6
|
exports.Transformers = {
|
|
9
7
|
AnonymousGuild(...args) {
|
|
10
8
|
return new structures_1.AnonymousGuild(...args);
|
|
@@ -55,7 +53,7 @@ exports.Transformers = {
|
|
|
55
53
|
return new structures_1.Guild(...args);
|
|
56
54
|
},
|
|
57
55
|
GuildBan(...args) {
|
|
58
|
-
return new
|
|
56
|
+
return new structures_1.GuildBan(...args);
|
|
59
57
|
},
|
|
60
58
|
GuildEmoji(...args) {
|
|
61
59
|
return new structures_1.GuildEmoji(...args);
|
|
@@ -97,6 +95,6 @@ exports.Transformers = {
|
|
|
97
95
|
return new commands_1.OptionResolver(...args);
|
|
98
96
|
},
|
|
99
97
|
Entitlement(...args) {
|
|
100
|
-
return new
|
|
98
|
+
return new structures_1.Entitlement(...args);
|
|
101
99
|
},
|
|
102
100
|
};
|
|
@@ -27,7 +27,7 @@ export declare class ApplicationShorter extends BaseShorter {
|
|
|
27
27
|
* @param applicationId The ID of the application.
|
|
28
28
|
* @param [query] The query parameters.
|
|
29
29
|
*/
|
|
30
|
-
listEntitlements(applicationId: string, query?: RESTGetAPIEntitlementsQuery): Promise<import("
|
|
30
|
+
listEntitlements(applicationId: string, query?: RESTGetAPIEntitlementsQuery): Promise<import("../..").Entitlement[]>;
|
|
31
31
|
/**
|
|
32
32
|
* Consumes an entitlement for the application.
|
|
33
33
|
* @param applicationId The ID of the application.
|
|
@@ -39,7 +39,7 @@ export declare class ApplicationShorter extends BaseShorter {
|
|
|
39
39
|
* @param applicationId The ID of the application.
|
|
40
40
|
* @param body The body of the request.
|
|
41
41
|
*/
|
|
42
|
-
createTestEntitlement(applicationId: string, body: RESTPostAPIEntitlementBody): Promise<import("
|
|
42
|
+
createTestEntitlement(applicationId: string, body: RESTPostAPIEntitlementBody): Promise<import("../..").Entitlement>;
|
|
43
43
|
/**
|
|
44
44
|
* Deletes a test entitlement for the application.
|
|
45
45
|
* @param applicationId The ID of the application.
|
|
@@ -30,7 +30,7 @@ export declare class BanShorter extends BaseShorter {
|
|
|
30
30
|
* @param force Whether to force fetching the ban from the API even if it exists in the cache.
|
|
31
31
|
* @returns A Promise that resolves to the fetched ban.
|
|
32
32
|
*/
|
|
33
|
-
fetch(guildId: string, userId: string, force?: boolean): Promise<import("
|
|
33
|
+
fetch(guildId: string, userId: string, force?: boolean): Promise<import("../..").GuildBan>;
|
|
34
34
|
/**
|
|
35
35
|
* Lists bans in the guild based on the provided query.
|
|
36
36
|
* @param guildId The ID of the guild.
|
|
@@ -38,5 +38,5 @@ export declare class BanShorter extends BaseShorter {
|
|
|
38
38
|
* @param force Whether to force listing bans from the API even if they exist in the cache.
|
|
39
39
|
* @returns A Promise that resolves to an array of listed bans.
|
|
40
40
|
*/
|
|
41
|
-
list(guildId: string, query?: RESTGetAPIGuildBansQuery, force?: boolean): Promise<import("
|
|
41
|
+
list(guildId: string, query?: RESTGetAPIGuildBansQuery, force?: boolean): Promise<import("../..").GuildBan[]>;
|
|
42
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UsingClient } from '../../commands';
|
|
2
2
|
import type { APIEntitlement } from '../../types';
|
|
3
|
-
export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) => import("
|
|
4
|
-
export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) => import("
|
|
5
|
-
export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) => import("
|
|
3
|
+
export declare const ENTITLEMENT_CREATE: (client: UsingClient, data: APIEntitlement) => import("../..").Entitlement;
|
|
4
|
+
export declare const ENTITLEMENT_UPDATE: (client: UsingClient, data: APIEntitlement) => import("../..").Entitlement;
|
|
5
|
+
export declare const ENTITLEMENT_DELETE: (client: UsingClient, data: APIEntitlement) => import("../..").Entitlement;
|
package/lib/structures/index.js
CHANGED
|
@@ -31,3 +31,5 @@ __exportStar(require("./VoiceState"), exports);
|
|
|
31
31
|
__exportStar(require("./Webhook"), exports);
|
|
32
32
|
__exportStar(require("./channels"), exports);
|
|
33
33
|
__exportStar(require("./Poll"), exports);
|
|
34
|
+
__exportStar(require("./GuildBan"), exports);
|
|
35
|
+
__exportStar(require("./Entitlement"), exports);
|
|
@@ -27,13 +27,13 @@ class Shard {
|
|
|
27
27
|
options;
|
|
28
28
|
constructor(id, options) {
|
|
29
29
|
this.id = id;
|
|
30
|
-
this.options = (0, common_1.MergeOptions)(
|
|
30
|
+
this.options = (0, common_1.MergeOptions)({
|
|
31
31
|
properties: constants_1.properties,
|
|
32
32
|
ratelimitOptions: {
|
|
33
33
|
rateLimitResetInterval: 60_000,
|
|
34
34
|
maxRequestsPerRateLimitTick: 120,
|
|
35
35
|
},
|
|
36
|
-
});
|
|
36
|
+
}, options);
|
|
37
37
|
this.logger = new common_1.Logger({
|
|
38
38
|
name: `[Shard #${id}]`,
|
|
39
39
|
logLevel: common_1.LogLevels.Info,
|