seyfert 3.2.1-dev-15624887796.0 → 3.2.1
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/api/Routes/guilds.d.ts +1 -1
- package/lib/api/api.d.ts +1 -1
- package/lib/api/api.js +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +1 -1
- package/lib/builders/Container.d.ts +1 -1
- package/lib/builders/Container.js +1 -1
- package/lib/builders/Section.d.ts +1 -1
- package/lib/builders/Section.js +1 -1
- package/lib/cache/index.d.ts +4 -4
- package/lib/cache/index.js +2 -2
- package/lib/cache/resources/guilds.d.ts +1 -1
- package/lib/client/base.d.ts +1 -1
- package/lib/client/base.js +3 -3
- package/lib/client/index.d.ts +1 -1
- package/lib/client/index.js +1 -1
- package/lib/client/transformers.d.ts +1 -1
- package/lib/client/workerclient.d.ts +4 -4
- package/lib/client/workerclient.js +1 -1
- package/lib/commands/applications/menucontext.js +0 -1
- package/lib/commands/applications/options.d.ts +1 -1
- package/lib/commands/applications/shared.d.ts +1 -1
- package/lib/commands/handle.d.ts +2 -2
- package/lib/commands/handle.js +1 -1
- package/lib/commands/handler.d.ts +1 -1
- package/lib/commands/index.d.ts +3 -3
- package/lib/commands/index.js +3 -3
- package/lib/common/index.d.ts +8 -8
- package/lib/common/index.js +12 -12
- package/lib/common/it/utils.d.ts +1 -1
- package/lib/common/it/utils.js +1 -3
- package/lib/common/shorters/messages.d.ts +1 -1
- package/lib/common/shorters/messages.js +1 -1
- package/lib/common/shorters/threads.d.ts +3 -2
- package/lib/common/shorters/threads.js +23 -12
- package/lib/common/types/options.d.ts +1 -1
- package/lib/common/types/resolvables.d.ts +1 -1
- package/lib/components/Container.d.ts +1 -1
- package/lib/components/componentcommand.d.ts +1 -1
- package/lib/components/componentcommand.js +5 -2
- package/lib/components/handler.d.ts +1 -0
- package/lib/components/handler.js +17 -0
- package/lib/events/hooks/channel.d.ts +1 -1
- package/lib/events/hooks/guild.d.ts +1 -1
- package/lib/events/hooks/index.d.ts +1 -1
- package/lib/events/hooks/index.js +1 -1
- package/lib/events/hooks/interactions.d.ts +1 -1
- package/lib/events/hooks/presence.d.ts +1 -1
- package/lib/events/hooks/soundboard.d.ts +1 -1
- package/lib/events/hooks/thread.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +10 -10
- package/lib/langs/router.d.ts +1 -1
- package/lib/langs/router.js +3 -1
- package/lib/structures/Guild.d.ts +2 -1
- package/lib/structures/Guild.js +5 -2
- package/lib/structures/GuildBan.d.ts +1 -1
- package/lib/structures/Interaction.d.ts +2 -2
- package/lib/structures/Interaction.js +1 -2
- package/lib/structures/Message.d.ts +1 -1
- package/lib/structures/Message.js +1 -2
- package/lib/structures/channels.d.ts +2 -2
- package/lib/structures/index.d.ts +5 -5
- package/lib/structures/index.js +5 -5
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/payloads/_interactions/base.d.ts +1 -1
- package/lib/types/payloads/application.d.ts +2 -2
- package/lib/types/payloads/components.d.ts +1 -1
- package/lib/types/payloads/index.d.ts +4 -4
- package/lib/types/payloads/index.js +4 -4
- package/lib/types/rest/index.d.ts +2 -2
- package/lib/types/rest/index.js +2 -2
- package/lib/websocket/SharedTypes.d.ts +1 -1
- package/lib/websocket/discord/shard.js +0 -1
- package/lib/websocket/index.d.ts +1 -1
- package/lib/websocket/index.js +1 -1
- package/package.json +4 -10
|
@@ -10,7 +10,7 @@ export interface ComponentCommand {
|
|
|
10
10
|
export declare abstract class ComponentCommand {
|
|
11
11
|
type: 0;
|
|
12
12
|
abstract componentType: keyof ContextComponentCommandInteractionMap;
|
|
13
|
-
customId?: string;
|
|
13
|
+
customId?: string | RegExp;
|
|
14
14
|
filter?(context: ComponentContext<typeof this.componentType>): Promise<boolean> | boolean;
|
|
15
15
|
abstract run(context: ComponentContext<typeof this.componentType>): any;
|
|
16
16
|
middlewares: (keyof RegisteredMiddlewares)[];
|
|
@@ -11,8 +11,11 @@ class ComponentCommand {
|
|
|
11
11
|
customId;
|
|
12
12
|
/** @internal */
|
|
13
13
|
_filter(context) {
|
|
14
|
-
if (this.customId
|
|
15
|
-
|
|
14
|
+
if (this.customId) {
|
|
15
|
+
const matches = typeof this.customId === 'string' ? this.customId === context.customId : context.customId.match(this.customId);
|
|
16
|
+
if (!matches)
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
16
19
|
if (this.filter)
|
|
17
20
|
return this.filter(context);
|
|
18
21
|
return true;
|
|
@@ -29,6 +29,7 @@ export type ComponentCommands = ComponentCommand | ModalCommand;
|
|
|
29
29
|
export interface CreateComponentCollectorResult {
|
|
30
30
|
run<T extends CollectorInteraction = CollectorInteraction>(customId: UserMatches, callback: ComponentCallback<T>): void;
|
|
31
31
|
stop(reason?: string): void;
|
|
32
|
+
waitFor<T extends CollectorInteraction = CollectorInteraction>(customId: UserMatches): Promise<T | null>;
|
|
32
33
|
resetTimeouts(): void;
|
|
33
34
|
}
|
|
34
35
|
export declare class ComponentHandler extends BaseHandler {
|
|
@@ -73,6 +73,23 @@ class ComponentHandler extends common_1.BaseHandler {
|
|
|
73
73
|
this.createComponentCollector(messageId, channelId, guildId, options, old.components);
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
|
+
waitFor: customId => new Promise(resolve => {
|
|
77
|
+
const collector = this.values.get(messageId);
|
|
78
|
+
if (!collector)
|
|
79
|
+
return resolve(null);
|
|
80
|
+
this.values.get(messageId).__run(customId, interaction => {
|
|
81
|
+
this.clearValue(messageId);
|
|
82
|
+
//@ts-expect-error generic
|
|
83
|
+
resolve(interaction);
|
|
84
|
+
});
|
|
85
|
+
if (collector?.timeout)
|
|
86
|
+
clearTimeout(collector.timeout);
|
|
87
|
+
collector.timeout = setTimeout(() => {
|
|
88
|
+
this.clearValue(messageId);
|
|
89
|
+
resolve(null);
|
|
90
|
+
// by default 15 seconds in case user don't do anything
|
|
91
|
+
}, collector?.options?.timeout ?? 15_000);
|
|
92
|
+
}),
|
|
76
93
|
resetTimeouts: () => {
|
|
77
94
|
this.resetTimeouts(messageId);
|
|
78
95
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from '../../types';
|
|
2
1
|
import type { UsingClient } from '../../commands';
|
|
3
2
|
import { type AllChannels } from '../../structures';
|
|
3
|
+
import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from '../../types';
|
|
4
4
|
export declare const CHANNEL_CREATE: (self: UsingClient, data: GatewayChannelCreateDispatchData) => AllChannels;
|
|
5
5
|
export declare const CHANNEL_DELETE: (self: UsingClient, data: GatewayChannelDeleteDispatchData) => AllChannels;
|
|
6
6
|
export declare const CHANNEL_PINS_UPDATE: (_self: UsingClient, data: GatewayChannelPinsUpdateDispatchData) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GuildEmojiStructure, type GuildMemberStructure, type GuildRoleStructure, type GuildStructure, type StickerStructure, type UserStructure } from '../../client/transformers';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
3
|
import { type ObjectToLower } from '../../common';
|
|
4
|
-
import type { APIUnavailableGuild, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData,
|
|
4
|
+
import type { APIUnavailableGuild, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
|
|
5
5
|
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
6
6
|
guildId: string;
|
|
7
7
|
targetId: string | null;
|
|
@@ -10,13 +10,13 @@ export * from './interactions';
|
|
|
10
10
|
export * from './invite';
|
|
11
11
|
export * from './message';
|
|
12
12
|
export * from './presence';
|
|
13
|
+
export * from './soundboard';
|
|
13
14
|
export * from './stage';
|
|
14
15
|
export * from './thread';
|
|
15
16
|
export * from './typing';
|
|
16
17
|
export * from './user';
|
|
17
18
|
export * from './voice';
|
|
18
19
|
export * from './webhook';
|
|
19
|
-
export * from './soundboard';
|
|
20
20
|
import type { CamelCase } from '../../common';
|
|
21
21
|
import type * as RawEvents from './index';
|
|
22
22
|
export type ClientEvents = {
|
|
@@ -26,10 +26,10 @@ __exportStar(require("./interactions"), exports);
|
|
|
26
26
|
__exportStar(require("./invite"), exports);
|
|
27
27
|
__exportStar(require("./message"), exports);
|
|
28
28
|
__exportStar(require("./presence"), exports);
|
|
29
|
+
__exportStar(require("./soundboard"), exports);
|
|
29
30
|
__exportStar(require("./stage"), exports);
|
|
30
31
|
__exportStar(require("./thread"), exports);
|
|
31
32
|
__exportStar(require("./typing"), exports);
|
|
32
33
|
__exportStar(require("./user"), exports);
|
|
33
34
|
__exportStar(require("./voice"), exports);
|
|
34
35
|
__exportStar(require("./webhook"), exports);
|
|
35
|
-
__exportStar(require("./soundboard"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { UsingClient } from '../../commands';
|
|
2
2
|
import { BaseInteraction } from '../../structures';
|
|
3
3
|
import type { GatewayInteractionCreateDispatchData } from '../../types';
|
|
4
|
-
export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").ModalSubmitInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").RoleSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").UserSelectMenuInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../../types").APIPingInteraction> | undefined;
|
|
@@ -57,8 +57,8 @@ export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceU
|
|
|
57
57
|
smallText?: string | undefined;
|
|
58
58
|
} | undefined;
|
|
59
59
|
secrets?: {
|
|
60
|
-
join?: string | undefined;
|
|
61
60
|
match?: string | undefined;
|
|
61
|
+
join?: string | undefined;
|
|
62
62
|
spectate?: string | undefined;
|
|
63
63
|
} | undefined;
|
|
64
64
|
instance?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UserStructure } from '../../client';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
3
|
import { type ObjectToLower } from '../../common';
|
|
4
|
-
import type { APISoundBoard, GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData,
|
|
4
|
+
import type { APISoundBoard, GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
|
|
5
5
|
export declare const GUILD_SOUNDBOARD_SOUND_CREATE: (self: UsingClient, data: GatewayGuildSoundboardSoundCreateDispatchData) => (ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">> & {
|
|
6
6
|
user: UserStructure;
|
|
7
7
|
}) | ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ThreadChannelStructure } from '../../client/transformers';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
3
|
import { type ObjectToLower } from '../../common';
|
|
4
|
-
import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData,
|
|
4
|
+
import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
|
|
5
5
|
export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) => ThreadChannelStructure;
|
|
6
6
|
export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => Promise<ThreadChannelStructure | ObjectToLower<GatewayThreadDeleteDispatchData>>;
|
|
7
7
|
export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
|
package/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export * from './client';
|
|
2
2
|
import { type BaseClientOptions, type InternalRuntimeConfig, type InternalRuntimeConfigHTTP, type RuntimeConfig, type RuntimeConfigHTTP } from './client/base';
|
|
3
3
|
import type { ClientNameEvents, CustomEventsKeys, ResolveEventParams } from './events';
|
|
4
|
-
export { Logger, PermissionStrings, Formatter } from './common';
|
|
5
|
-
export { Collection, LimitedCollection } from './collection';
|
|
6
4
|
export * from './api';
|
|
7
5
|
export * from './builders';
|
|
8
6
|
export * from './cache';
|
|
7
|
+
export { Collection, LimitedCollection } from './collection';
|
|
9
8
|
export * from './commands';
|
|
9
|
+
export { Formatter, Logger, PermissionStrings } from './common';
|
|
10
10
|
export * from './components';
|
|
11
11
|
export * from './events';
|
|
12
12
|
export * from './langs';
|
|
13
|
-
export { ShardManager, WorkerManager } from './websocket/discord';
|
|
14
13
|
export * from './structures';
|
|
14
|
+
export { ShardManager, WorkerManager } from './websocket/discord';
|
|
15
15
|
/**
|
|
16
16
|
* Creates an event with the specified data and run function.
|
|
17
17
|
*
|
package/lib/index.js
CHANGED
|
@@ -14,34 +14,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.config = exports.WorkerManager = exports.ShardManager = exports.
|
|
17
|
+
exports.config = exports.WorkerManager = exports.ShardManager = exports.Logger = exports.Formatter = exports.LimitedCollection = exports.Collection = void 0;
|
|
18
18
|
exports.createEvent = createEvent;
|
|
19
19
|
exports.extendContext = extendContext;
|
|
20
20
|
__exportStar(require("./client"), exports);
|
|
21
21
|
const base_1 = require("./client/base");
|
|
22
22
|
const common_1 = require("./common");
|
|
23
23
|
const types_1 = require("./types");
|
|
24
|
-
var common_2 = require("./common");
|
|
25
|
-
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return common_2.Logger; } });
|
|
26
|
-
Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return common_2.Formatter; } });
|
|
27
|
-
//
|
|
28
|
-
var collection_1 = require("./collection");
|
|
29
|
-
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
|
|
30
|
-
Object.defineProperty(exports, "LimitedCollection", { enumerable: true, get: function () { return collection_1.LimitedCollection; } });
|
|
31
24
|
//
|
|
32
25
|
__exportStar(require("./api"), exports);
|
|
33
26
|
__exportStar(require("./builders"), exports);
|
|
34
27
|
__exportStar(require("./cache"), exports);
|
|
28
|
+
//
|
|
29
|
+
var collection_1 = require("./collection");
|
|
30
|
+
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
|
|
31
|
+
Object.defineProperty(exports, "LimitedCollection", { enumerable: true, get: function () { return collection_1.LimitedCollection; } });
|
|
35
32
|
__exportStar(require("./commands"), exports);
|
|
33
|
+
var common_2 = require("./common");
|
|
34
|
+
Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return common_2.Formatter; } });
|
|
35
|
+
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return common_2.Logger; } });
|
|
36
36
|
__exportStar(require("./components"), exports);
|
|
37
37
|
__exportStar(require("./events"), exports);
|
|
38
38
|
__exportStar(require("./langs"), exports);
|
|
39
39
|
//
|
|
40
|
+
__exportStar(require("./structures"), exports);
|
|
41
|
+
//
|
|
40
42
|
var discord_1 = require("./websocket/discord");
|
|
41
43
|
Object.defineProperty(exports, "ShardManager", { enumerable: true, get: function () { return discord_1.ShardManager; } });
|
|
42
44
|
Object.defineProperty(exports, "WorkerManager", { enumerable: true, get: function () { return discord_1.WorkerManager; } });
|
|
43
|
-
//
|
|
44
|
-
__exportStar(require("./structures"), exports);
|
|
45
45
|
/**
|
|
46
46
|
* Creates an event with the specified data and run function.
|
|
47
47
|
*
|
package/lib/langs/router.d.ts
CHANGED
package/lib/langs/router.js
CHANGED
|
@@ -13,6 +13,8 @@ const LangRouter = (userLocale, defaultLang, langs) => {
|
|
|
13
13
|
if (typeof locale === 'undefined')
|
|
14
14
|
throw new Error('Undefined locale');
|
|
15
15
|
let value = langs[locale];
|
|
16
|
+
if (typeof value === 'undefined')
|
|
17
|
+
throw new Error(`Locale "${locale}" not found`);
|
|
16
18
|
for (const i of route)
|
|
17
19
|
value = value[i];
|
|
18
20
|
return value;
|
|
@@ -39,4 +41,4 @@ const LangRouter = (userLocale, defaultLang, langs) => {
|
|
|
39
41
|
return createProxy;
|
|
40
42
|
};
|
|
41
43
|
exports.LangRouter = LangRouter;
|
|
42
|
-
/**Idea inspiration from: FreeAoi */
|
|
44
|
+
/**Idea inspiration from: FreeAoi | Fixed by: Drylozu */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GuildMemberStructure, GuildStructure } from '../client';
|
|
1
|
+
import type { GuildMemberStructure, GuildStructure, ThreadChannelStructure } from '../client';
|
|
2
2
|
import type { UsingClient } from '../commands';
|
|
3
3
|
import type { CreateInviteFromChannel } from '../common';
|
|
4
4
|
import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
|
|
@@ -20,6 +20,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
20
20
|
get maxStickers(): MaxStickers;
|
|
21
21
|
get maxEmojis(): MaxEmojis;
|
|
22
22
|
fetchOwner(force?: boolean): Promise<GuildMemberStructure | null>;
|
|
23
|
+
listActiveThreads(force?: boolean): Promise<ThreadChannelStructure[]>;
|
|
23
24
|
templates: {
|
|
24
25
|
fetch: (code: string) => Promise<import("../client").GuildTemplateStructure>;
|
|
25
26
|
list: () => Promise<import("../client").GuildTemplateStructure[]>;
|
package/lib/structures/Guild.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Guild = void 0;
|
|
4
4
|
const AutoModerationRule_1 = require("./AutoModerationRule");
|
|
5
|
+
const channels_1 = require("./channels");
|
|
5
6
|
const Emoji_1 = require("./Emoji");
|
|
7
|
+
const BaseGuild_1 = require("./extra/BaseGuild");
|
|
6
8
|
const GuildBan_1 = require("./GuildBan");
|
|
7
9
|
const GuildMember_1 = require("./GuildMember");
|
|
8
10
|
const GuildRole_1 = require("./GuildRole");
|
|
9
11
|
const GuildTemplate_1 = require("./GuildTemplate");
|
|
10
12
|
const Sticker_1 = require("./Sticker");
|
|
11
|
-
const channels_1 = require("./channels");
|
|
12
|
-
const BaseGuild_1 = require("./extra/BaseGuild");
|
|
13
13
|
class Guild extends BaseGuild_1.BaseGuild {
|
|
14
14
|
joinedAt;
|
|
15
15
|
memberCount;
|
|
@@ -56,6 +56,9 @@ class Guild extends BaseGuild_1.BaseGuild {
|
|
|
56
56
|
}
|
|
57
57
|
return this.members.fetch(this.ownerId, force);
|
|
58
58
|
}
|
|
59
|
+
listActiveThreads(force = false) {
|
|
60
|
+
return this.client.threads.listGuildActive(this.id, force);
|
|
61
|
+
}
|
|
59
62
|
templates = GuildTemplate_1.GuildTemplate.methods({ client: this.client, guildId: this.id });
|
|
60
63
|
stickers = Sticker_1.Sticker.methods({ client: this.client, guildId: this.id });
|
|
61
64
|
members = GuildMember_1.GuildMember.methods({ client: this.client, guildId: this.id });
|
|
@@ -3,7 +3,7 @@ import type { GuildBanStructure, GuildStructure } from '../client';
|
|
|
3
3
|
import type { UsingClient } from '../commands';
|
|
4
4
|
import { type MethodContext, type ObjectToLower } from '../common';
|
|
5
5
|
import type { BanShorter } from '../common/shorters/bans';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ActuallyBan, APIBan, RESTGetAPIGuildBansQuery } from '../types';
|
|
7
7
|
import { DiscordBase } from './extra/DiscordBase';
|
|
8
8
|
export interface GuildBan extends DiscordBase, ObjectToLower<Omit<APIBan, 'id'>> {
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type APIApplicationCommandAutocompleteInteraction, type APIApplicationCommandInteraction, type APIBaseInteraction, type APIChatInputApplicationCommandInteraction, type APIChatInputApplicationCommandInteractionData, type APICommandAutocompleteInteractionResponseCallbackData, type APIEntryPointCommandInteraction, type APIInteraction, type APIInteractionResponse, type APIInteractionResponseChannelMessageWithSource, type APIInteractionResponseDeferredChannelMessageWithSource, type APIInteractionResponseDeferredMessageUpdate, type APIInteractionResponsePong, type APIInteractionResponseUpdateMessage, type APIMessageApplicationCommandInteraction, type APIMessageApplicationCommandInteractionData, type APIMessageButtonInteractionData, type APIMessageComponentInteraction, type APIMessageComponentSelectMenuInteraction, type APIMessageStringSelectInteractionData, type APIModalSubmission, type APIModalSubmitInteraction, type APIUserApplicationCommandInteraction, type APIUserApplicationCommandInteractionData, ApplicationCommandType, ComponentType, type GatewayInteractionCreateDispatchData, type InteractionCallbackData, type InteractionCallbackResourceActivity, InteractionResponseType, InteractionType, type MessageFlags, type RESTPostAPIInteractionCallbackJSONBody, type RESTPostAPIInteractionCallbackResult } from '../types';
|
|
2
1
|
import type { RawFile } from '../api';
|
|
3
2
|
import type { ReturnCache } from '../cache';
|
|
4
3
|
import { type EntitlementStructure, type GuildRoleStructure, type GuildStructure, type InteractionGuildMemberStructure, type MessageStructure, type OptionResolverStructure, type UserStructure, type WebhookMessageStructure } from '../client/transformers';
|
|
5
4
|
import type { UsingClient } from '../commands';
|
|
6
5
|
import { type ComponentInteractionMessageUpdate, type InteractionCreateBodyRequest, type InteractionMessageUpdateBodyRequest, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MessageWebhookCreateBodyRequest, type ModalCreateBodyRequest, type ObjectToLower, type OmitInsert, type ToClass, type When } from '../common';
|
|
6
|
+
import { type APIApplicationCommandAutocompleteInteraction, type APIApplicationCommandInteraction, type APIBaseInteraction, type APIChatInputApplicationCommandInteraction, type APIChatInputApplicationCommandInteractionData, type APICommandAutocompleteInteractionResponseCallbackData, type APIEntryPointCommandInteraction, type APIInteraction, type APIInteractionResponse, type APIInteractionResponseChannelMessageWithSource, type APIInteractionResponseDeferredChannelMessageWithSource, type APIInteractionResponseDeferredMessageUpdate, type APIInteractionResponsePong, type APIInteractionResponseUpdateMessage, type APIMessageApplicationCommandInteraction, type APIMessageApplicationCommandInteractionData, type APIMessageButtonInteractionData, type APIMessageComponentInteraction, type APIMessageComponentSelectMenuInteraction, type APIMessageStringSelectInteractionData, type APIModalSubmission, type APIModalSubmitInteraction, type APIUserApplicationCommandInteraction, type APIUserApplicationCommandInteractionData, ApplicationCommandType, ComponentType, type GatewayInteractionCreateDispatchData, type InteractionCallbackData, type InteractionCallbackResourceActivity, InteractionResponseType, InteractionType, type MessageFlags, type RESTPostAPIInteractionCallbackJSONBody, type RESTPostAPIInteractionCallbackResult } from '../types';
|
|
7
7
|
import { type AllChannels } from './';
|
|
8
8
|
import { DiscordBase } from './extra/DiscordBase';
|
|
9
9
|
import { PermissionsBitField } from './extra/Permissions';
|
|
@@ -50,7 +50,7 @@ export declare class BaseInteraction<FromGuild extends boolean = boolean, Type e
|
|
|
50
50
|
isAutocomplete(): this is AutocompleteInteraction;
|
|
51
51
|
isModal(): this is ModalSubmitInteraction;
|
|
52
52
|
isEntryPoint(): this is EntryPointInteraction;
|
|
53
|
-
static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction):
|
|
53
|
+
static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction): ModalSubmitInteraction<boolean> | ButtonInteraction | ChannelSelectMenuInteraction | RoleSelectMenuInteraction | MentionableSelectMenuInteraction | UserSelectMenuInteraction | StringSelectMenuInteraction<string[]> | ChatInputCommandInteraction<boolean> | UserCommandInteraction<boolean> | MessageCommandInteraction<boolean> | AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../types").APIPingInteraction> | undefined;
|
|
54
54
|
fetchGuild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'> | undefined>;
|
|
55
55
|
fetchGuild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
56
56
|
}
|
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ModalSubmitInteraction = exports.MessageCommandInteraction = exports.UserCommandInteraction = exports.ChatInputCommandInteraction = exports.UserSelectMenuInteraction = exports.RoleSelectMenuInteraction = exports.MentionableSelectMenuInteraction = exports.ChannelSelectMenuInteraction = exports.StringSelectMenuInteraction = exports.SelectMenuInteraction = exports.ButtonInteraction = exports.ComponentInteraction = exports.EntryPointInteraction = exports.ApplicationCommandInteraction = exports.Interaction = exports.AutocompleteInteraction = exports.BaseInteraction = void 0;
|
|
10
|
-
const types_1 = require("../types");
|
|
11
10
|
const builders_1 = require("../builders");
|
|
12
11
|
const transformers_1 = require("../client/transformers");
|
|
13
12
|
const common_1 = require("../common");
|
|
14
13
|
const mixer_1 = require("../deps/mixer");
|
|
14
|
+
const types_1 = require("../types");
|
|
15
15
|
const _1 = require("./");
|
|
16
16
|
const DiscordBase_1 = require("./extra/DiscordBase");
|
|
17
17
|
const Permissions_1 = require("./extra/Permissions");
|
|
@@ -183,7 +183,6 @@ class BaseInteraction extends DiscordBase_1.DiscordBase {
|
|
|
183
183
|
switch (gateway.type) {
|
|
184
184
|
case types_1.InteractionType.ApplicationCommandAutocomplete:
|
|
185
185
|
return new AutocompleteInteraction(client, gateway, undefined, __reply);
|
|
186
|
-
// biome-ignore lint/suspicious/noFallthroughSwitchClause: bad interaction between biome and ts-server
|
|
187
186
|
case types_1.InteractionType.ApplicationCommand:
|
|
188
187
|
switch (gateway.data.type) {
|
|
189
188
|
case types_1.ApplicationCommandType.ChatInput:
|
|
@@ -7,8 +7,8 @@ import type { EmojiResolvable } from '../common/types/resolvables';
|
|
|
7
7
|
import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../common/types/write';
|
|
8
8
|
import type { TopLevelComponents } from '../components';
|
|
9
9
|
import type { APIChannelMention, APIEmbed, APIMessage, GatewayMessageCreateDispatchData } from '../types';
|
|
10
|
-
import type { MessageWebhookMethodEditParams, MessageWebhookMethodWriteParams } from './Webhook';
|
|
11
10
|
import { DiscordBase } from './extra/DiscordBase';
|
|
11
|
+
import type { MessageWebhookMethodEditParams, MessageWebhookMethodWriteParams } from './Webhook';
|
|
12
12
|
export type MessageData = APIMessage | GatewayMessageCreateDispatchData;
|
|
13
13
|
export interface BaseMessage extends DiscordBase, ObjectToLower<Omit<MessageData, 'timestamp' | 'author' | 'mentions' | 'components' | 'poll' | 'embeds'>> {
|
|
14
14
|
timestamp?: number;
|
|
@@ -4,7 +4,6 @@ exports.InMessageEmbed = exports.WebhookMessage = exports.Message = exports.Base
|
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const transformers_1 = require("../client/transformers");
|
|
6
6
|
const common_1 = require("../common");
|
|
7
|
-
const common_2 = require("../common");
|
|
8
7
|
const DiscordBase_1 = require("./extra/DiscordBase");
|
|
9
8
|
class BaseMessage extends DiscordBase_1.DiscordBase {
|
|
10
9
|
embeds;
|
|
@@ -26,7 +25,7 @@ class BaseMessage extends DiscordBase_1.DiscordBase {
|
|
|
26
25
|
return this.client.components.createComponentCollector(this.id, this.channelId, this.guildId, options);
|
|
27
26
|
}
|
|
28
27
|
get url() {
|
|
29
|
-
return
|
|
28
|
+
return common_1.Formatter.messageLink(this.guildId ?? '@me', this.channelId, this.id);
|
|
30
29
|
}
|
|
31
30
|
guild(mode = 'flow') {
|
|
32
31
|
if (!this.guildId)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Collection, type RawFile, type ReturnCache } from '..';
|
|
2
2
|
import type { Overwrites } from '../cache/resources/overwrites';
|
|
3
|
-
import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type
|
|
3
|
+
import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client';
|
|
4
4
|
import type { SeyfertChannelMap, UsingClient } from '../commands';
|
|
5
5
|
import { type CreateInviteFromChannel, type EmojiResolvable, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MethodContext, type ObjectToLower, type StringToNumber, type ToClass } from '../common';
|
|
6
6
|
import { type APIChannelBase, type APIDMChannel, type APIGuildCategoryChannel, type APIGuildChannel, type APIGuildForumChannel, type APIGuildForumDefaultReactionEmoji, type APIGuildForumTag, type APIGuildMediaChannel, type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type APINewsChannel, type APITextChannel, type APIThreadChannel, ChannelType, type RESTGetAPIChannelMessageReactionUsersQuery, type RESTGetAPIChannelMessagesQuery, type RESTPatchAPIChannelJSONBody, type RESTPatchAPIGuildChannelPositionsJSONBody, type RESTPostAPIChannelWebhookJSONBody, type RESTPostAPIGuildChannelJSONBody, type RESTPostAPIGuildForumThreadsJSONBody, type SortOrderType, type ThreadAutoArchiveDuration, VideoQualityMode } from '../types';
|
|
7
|
+
import { DiscordBase } from './extra/DiscordBase';
|
|
7
8
|
import type { GuildMember } from './GuildMember';
|
|
8
9
|
import type { GuildRole } from './GuildRole';
|
|
9
|
-
import { DiscordBase } from './extra/DiscordBase';
|
|
10
10
|
export declare class BaseNoEditableChannel<T extends ChannelType> extends DiscordBase<APIChannelBase<ChannelType>> {
|
|
11
11
|
type: T;
|
|
12
12
|
constructor(client: UsingClient, data: APIChannelBase<ChannelType>);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export * from './AnonymousGuild';
|
|
2
2
|
export * from './AutoModerationRule';
|
|
3
3
|
export * from './ClientUser';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './channels';
|
|
5
5
|
export * from './Emoji';
|
|
6
|
+
export * from './Entitlement';
|
|
7
|
+
export * from './Guild';
|
|
8
|
+
export * from './GuildBan';
|
|
6
9
|
export * from './GuildMember';
|
|
7
10
|
export * from './GuildPreview';
|
|
8
11
|
export * from './GuildRole';
|
|
9
12
|
export * from './GuildTemplate';
|
|
10
13
|
export * from './Interaction';
|
|
11
14
|
export * from './Message';
|
|
15
|
+
export * from './Poll';
|
|
12
16
|
export * from './Sticker';
|
|
13
17
|
export * from './User';
|
|
14
18
|
export * from './VoiceState';
|
|
15
19
|
export * from './Webhook';
|
|
16
|
-
export * from './channels';
|
|
17
|
-
export * from './Poll';
|
|
18
|
-
export * from './GuildBan';
|
|
19
|
-
export * from './Entitlement';
|
package/lib/structures/index.js
CHANGED
|
@@ -17,19 +17,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AnonymousGuild"), exports);
|
|
18
18
|
__exportStar(require("./AutoModerationRule"), exports);
|
|
19
19
|
__exportStar(require("./ClientUser"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./channels"), exports);
|
|
21
21
|
__exportStar(require("./Emoji"), exports);
|
|
22
|
+
__exportStar(require("./Entitlement"), exports);
|
|
23
|
+
__exportStar(require("./Guild"), exports);
|
|
24
|
+
__exportStar(require("./GuildBan"), exports);
|
|
22
25
|
__exportStar(require("./GuildMember"), exports);
|
|
23
26
|
__exportStar(require("./GuildPreview"), exports);
|
|
24
27
|
__exportStar(require("./GuildRole"), exports);
|
|
25
28
|
__exportStar(require("./GuildTemplate"), exports);
|
|
26
29
|
__exportStar(require("./Interaction"), exports);
|
|
27
30
|
__exportStar(require("./Message"), exports);
|
|
31
|
+
__exportStar(require("./Poll"), exports);
|
|
28
32
|
__exportStar(require("./Sticker"), exports);
|
|
29
33
|
__exportStar(require("./User"), exports);
|
|
30
34
|
__exportStar(require("./VoiceState"), exports);
|
|
31
35
|
__exportStar(require("./Webhook"), exports);
|
|
32
|
-
__exportStar(require("./channels"), exports);
|
|
33
|
-
__exportStar(require("./Poll"), exports);
|
|
34
|
-
__exportStar(require("./GuildBan"), exports);
|
|
35
|
-
__exportStar(require("./Entitlement"), exports);
|
package/lib/types/index.d.ts
CHANGED
package/lib/types/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
__exportStar(require("./gateway"), exports);
|
|
41
|
-
__exportStar(require("./rest"), exports);
|
|
42
41
|
__exportStar(require("./payloads"), exports);
|
|
43
42
|
__exportStar(require("./rest"), exports);
|
|
43
|
+
__exportStar(require("./rest"), exports);
|
|
44
44
|
__exportStar(require("./utils"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApplicationIntegrationType, InteractionContextType } from '..';
|
|
2
1
|
import type { ChannelType, Permissions, Snowflake } from '../..';
|
|
3
2
|
import type { LocaleString } from '../../rest';
|
|
3
|
+
import type { ApplicationIntegrationType, InteractionContextType } from '..';
|
|
4
4
|
import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ThreadChannelType } from '../channel';
|
|
5
5
|
import type { APIGuildMember, APIPartialInteractionGuild } from '../guild';
|
|
6
6
|
import type { APIEntitlement } from '../monetization';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types extracted from https://discord.com/developers/docs/resources/application
|
|
3
3
|
*/
|
|
4
|
-
import type { APIEmoji, LocalizationMap } from '.';
|
|
5
|
-
import type { Permissions, Snowflake } from '..';
|
|
6
4
|
import type { MakeRequired } from '../../common';
|
|
5
|
+
import type { Permissions, Snowflake } from '..';
|
|
6
|
+
import type { APIEmoji, LocalizationMap } from '.';
|
|
7
7
|
import type { APIPartialGuild } from './guild';
|
|
8
8
|
import type { ApplicationIntegrationType } from './interactions';
|
|
9
9
|
import type { OAuth2Scopes } from './oauth2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { APIAttachment, Snowflake } from '..';
|
|
2
1
|
import type { Identify, MakeRequired } from '../../common';
|
|
2
|
+
import type { APIAttachment, Snowflake } from '..';
|
|
3
3
|
import type { ChannelType } from '../utils';
|
|
4
4
|
/**
|
|
5
5
|
* https://discord.com/developers/docs/interactions/message-components#component-object
|
|
@@ -2,15 +2,18 @@ export * from './application';
|
|
|
2
2
|
export * from './auditLog';
|
|
3
3
|
export * from './autoModeration';
|
|
4
4
|
export * from './channel';
|
|
5
|
+
export * from './components';
|
|
5
6
|
export * from './emoji';
|
|
6
7
|
export * from './gateway';
|
|
7
8
|
export * from './guild';
|
|
8
9
|
export * from './guildScheduledEvent';
|
|
9
10
|
export * from './interactions';
|
|
10
11
|
export * from './invite';
|
|
12
|
+
export * from './monetization';
|
|
11
13
|
export * from './oauth2';
|
|
12
|
-
export * from './poll';
|
|
13
14
|
export * from './permissions';
|
|
15
|
+
export * from './poll';
|
|
16
|
+
export * from './soundboard';
|
|
14
17
|
export * from './stageInstance';
|
|
15
18
|
export * from './sticker';
|
|
16
19
|
export * from './teams';
|
|
@@ -18,9 +21,6 @@ export * from './template';
|
|
|
18
21
|
export * from './user';
|
|
19
22
|
export * from './voice';
|
|
20
23
|
export * from './webhook';
|
|
21
|
-
export * from './monetization';
|
|
22
|
-
export * from './soundboard';
|
|
23
|
-
export * from './components';
|
|
24
24
|
import type { LocaleString } from '../rest';
|
|
25
25
|
export type LocalizationMap = Partial<Record<LocaleString, string | null>>;
|
|
26
26
|
/**
|
|
@@ -18,15 +18,18 @@ __exportStar(require("./application"), exports);
|
|
|
18
18
|
__exportStar(require("./auditLog"), exports);
|
|
19
19
|
__exportStar(require("./autoModeration"), exports);
|
|
20
20
|
__exportStar(require("./channel"), exports);
|
|
21
|
+
__exportStar(require("./components"), exports);
|
|
21
22
|
__exportStar(require("./emoji"), exports);
|
|
22
23
|
__exportStar(require("./gateway"), exports);
|
|
23
24
|
__exportStar(require("./guild"), exports);
|
|
24
25
|
__exportStar(require("./guildScheduledEvent"), exports);
|
|
25
26
|
__exportStar(require("./interactions"), exports);
|
|
26
27
|
__exportStar(require("./invite"), exports);
|
|
28
|
+
__exportStar(require("./monetization"), exports);
|
|
27
29
|
__exportStar(require("./oauth2"), exports);
|
|
28
|
-
__exportStar(require("./poll"), exports);
|
|
29
30
|
__exportStar(require("./permissions"), exports);
|
|
31
|
+
__exportStar(require("./poll"), exports);
|
|
32
|
+
__exportStar(require("./soundboard"), exports);
|
|
30
33
|
__exportStar(require("./stageInstance"), exports);
|
|
31
34
|
__exportStar(require("./sticker"), exports);
|
|
32
35
|
__exportStar(require("./teams"), exports);
|
|
@@ -34,6 +37,3 @@ __exportStar(require("./template"), exports);
|
|
|
34
37
|
__exportStar(require("./user"), exports);
|
|
35
38
|
__exportStar(require("./voice"), exports);
|
|
36
39
|
__exportStar(require("./webhook"), exports);
|
|
37
|
-
__exportStar(require("./monetization"), exports);
|
|
38
|
-
__exportStar(require("./soundboard"), exports);
|
|
39
|
-
__exportStar(require("./components"), exports);
|
|
@@ -9,16 +9,16 @@ export * from './guild';
|
|
|
9
9
|
export * from './guildScheduledEvent';
|
|
10
10
|
export * from './interactions';
|
|
11
11
|
export * from './invite';
|
|
12
|
+
export * from './monetization';
|
|
12
13
|
export * from './oauth2';
|
|
13
14
|
export * from './poll';
|
|
15
|
+
export * from './soundboard';
|
|
14
16
|
export * from './stageInstance';
|
|
15
17
|
export * from './sticker';
|
|
16
18
|
export * from './template';
|
|
17
19
|
export * from './user';
|
|
18
20
|
export * from './voice';
|
|
19
21
|
export * from './webhook';
|
|
20
|
-
export * from './monetization';
|
|
21
|
-
export * from './soundboard';
|
|
22
22
|
export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;
|
|
23
23
|
export type EmojiFormat = Exclude<ImageFormat, ImageFormat.Lottie>;
|
|
24
24
|
export type GuildIconFormat = Exclude<ImageFormat, ImageFormat.Lottie>;
|
package/lib/types/rest/index.js
CHANGED
|
@@ -25,16 +25,16 @@ __exportStar(require("./guild"), exports);
|
|
|
25
25
|
__exportStar(require("./guildScheduledEvent"), exports);
|
|
26
26
|
__exportStar(require("./interactions"), exports);
|
|
27
27
|
__exportStar(require("./invite"), exports);
|
|
28
|
+
__exportStar(require("./monetization"), exports);
|
|
28
29
|
__exportStar(require("./oauth2"), exports);
|
|
29
30
|
__exportStar(require("./poll"), exports);
|
|
31
|
+
__exportStar(require("./soundboard"), exports);
|
|
30
32
|
__exportStar(require("./stageInstance"), exports);
|
|
31
33
|
__exportStar(require("./sticker"), exports);
|
|
32
34
|
__exportStar(require("./template"), exports);
|
|
33
35
|
__exportStar(require("./user"), exports);
|
|
34
36
|
__exportStar(require("./voice"), exports);
|
|
35
37
|
__exportStar(require("./webhook"), exports);
|
|
36
|
-
__exportStar(require("./monetization"), exports);
|
|
37
|
-
__exportStar(require("./soundboard"), exports);
|
|
38
38
|
/**
|
|
39
39
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes
|
|
40
40
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RestToKeys } from '../common';
|
|
2
|
-
import type { APIAuditLogEntry, APIAutoModerationRule, APIChannel, APIEntitlement, APIGuild, APIGuildMember, APIGuildScheduledEvent, APIStageInstance, APISubscription, APIUser, GatewayActivity, GatewayAutoModerationActionExecutionDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData,
|
|
2
|
+
import type { APIAuditLogEntry, APIAutoModerationRule, APIChannel, APIEntitlement, APIGuild, APIGuildMember, APIGuildScheduledEvent, APIStageInstance, APISubscription, APIUser, GatewayActivity, GatewayAutoModerationActionExecutionDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayInteractionCreateDispatchData, GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData, GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, GatewayPresenceUpdateData, GatewayPresenceUpdateDispatchData, GatewayReadyDispatchData, GatewayRequestGuildMembersDataWithQuery, GatewayRequestGuildMembersDataWithUserIds, GatewaySoundboardSoundsDispatchData, GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayTypingStartDispatchData, GatewayUserUpdateDispatchData, GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateData, GatewayWebhooksUpdateDispatchData, PresenceUpdateStatus } from '../types';
|
|
3
3
|
import { GatewayDispatchEvents } from '../types';
|
|
4
4
|
import type { APISoundBoard } from '../types/payloads/soundboard';
|
|
5
5
|
/** https://discord.com/developers/docs/topics/gateway-events#update-presence */
|