seyfert 0.1.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/LICENSE +190 -0
- package/README.md +57 -0
- package/lib/api/CDN.d.ts +220 -0
- package/lib/api/CDN.js +236 -0
- package/lib/api/REST.d.ts +127 -0
- package/lib/api/REST.js +424 -0
- package/lib/api/Router.d.ts +17 -0
- package/lib/api/Router.js +63 -0
- package/lib/api/Routes/applications.d.ts +46 -0
- package/lib/api/Routes/applications.js +2 -0
- package/lib/api/Routes/cdn.d.ts +66 -0
- package/lib/api/Routes/cdn.js +2 -0
- package/lib/api/Routes/channels.d.ts +109 -0
- package/lib/api/Routes/channels.js +2 -0
- package/lib/api/Routes/gateway.d.ts +11 -0
- package/lib/api/Routes/gateway.js +2 -0
- package/lib/api/Routes/guilds.d.ts +171 -0
- package/lib/api/Routes/guilds.js +2 -0
- package/lib/api/Routes/index.d.ts +13 -0
- package/lib/api/Routes/index.js +17 -0
- package/lib/api/Routes/interactions.d.ts +14 -0
- package/lib/api/Routes/interactions.js +2 -0
- package/lib/api/Routes/invites.d.ts +9 -0
- package/lib/api/Routes/invites.js +2 -0
- package/lib/api/Routes/stage-instances.d.ts +13 -0
- package/lib/api/Routes/stage-instances.js +2 -0
- package/lib/api/Routes/stickers.d.ts +11 -0
- package/lib/api/Routes/stickers.js +2 -0
- package/lib/api/Routes/users.d.ts +35 -0
- package/lib/api/Routes/users.js +2 -0
- package/lib/api/Routes/voice.d.ts +10 -0
- package/lib/api/Routes/voice.js +2 -0
- package/lib/api/Routes/webhooks.d.ts +29 -0
- package/lib/api/Routes/webhooks.js +2 -0
- package/lib/api/errors/DiscordAPIError.d.ts +51 -0
- package/lib/api/errors/DiscordAPIError.js +81 -0
- package/lib/api/errors/HTTPError.d.ts +20 -0
- package/lib/api/errors/HTTPError.js +28 -0
- package/lib/api/errors/RateLimitError.d.ts +19 -0
- package/lib/api/errors/RateLimitError.js +37 -0
- package/lib/api/handlers/BurstHandler.d.ts +51 -0
- package/lib/api/handlers/BurstHandler.js +124 -0
- package/lib/api/handlers/SequentialHandler.d.ts +81 -0
- package/lib/api/handlers/SequentialHandler.js +365 -0
- package/lib/api/handlers/Shared.d.ts +14 -0
- package/lib/api/handlers/Shared.js +125 -0
- package/lib/api/index.d.ts +5 -0
- package/lib/api/index.js +21 -0
- package/lib/api/interfaces/Handler.d.ts +21 -0
- package/lib/api/interfaces/Handler.js +2 -0
- package/lib/api/shared.d.ts +7 -0
- package/lib/api/shared.js +27 -0
- package/lib/api/utils/constants.d.ts +39 -0
- package/lib/api/utils/constants.js +50 -0
- package/lib/api/utils/types.d.ts +335 -0
- package/lib/api/utils/types.js +14 -0
- package/lib/api/utils/utils.d.ts +52 -0
- package/lib/api/utils/utils.js +159 -0
- package/lib/builders/ActionRow.d.ts +40 -0
- package/lib/builders/ActionRow.js +58 -0
- package/lib/builders/Attachment.d.ts +106 -0
- package/lib/builders/Attachment.js +196 -0
- package/lib/builders/Base.d.ts +10 -0
- package/lib/builders/Base.js +13 -0
- package/lib/builders/Button.d.ts +59 -0
- package/lib/builders/Button.js +94 -0
- package/lib/builders/MessageEmbed.d.ts +116 -0
- package/lib/builders/MessageEmbed.js +159 -0
- package/lib/builders/Modal.d.ts +111 -0
- package/lib/builders/Modal.js +162 -0
- package/lib/builders/SelectMenu.d.ts +201 -0
- package/lib/builders/SelectMenu.js +293 -0
- package/lib/builders/index.d.ts +12 -0
- package/lib/builders/index.js +54 -0
- package/lib/builders/types.d.ts +21 -0
- package/lib/builders/types.js +2 -0
- package/lib/cache/adapters/default.d.ts +24 -0
- package/lib/cache/adapters/default.js +118 -0
- package/lib/cache/adapters/index.d.ts +4 -0
- package/lib/cache/adapters/index.js +20 -0
- package/lib/cache/adapters/redis.d.ts +35 -0
- package/lib/cache/adapters/redis.js +180 -0
- package/lib/cache/adapters/types.d.ts +25 -0
- package/lib/cache/adapters/types.js +2 -0
- package/lib/cache/adapters/workeradapter.d.ts +24 -0
- package/lib/cache/adapters/workeradapter.js +76 -0
- package/lib/cache/index.d.ts +97 -0
- package/lib/cache/index.js +394 -0
- package/lib/cache/resources/channels.d.ts +7 -0
- package/lib/cache/resources/channels.js +20 -0
- package/lib/cache/resources/default/base.d.ts +25 -0
- package/lib/cache/resources/default/base.js +75 -0
- package/lib/cache/resources/default/guild-based.d.ts +33 -0
- package/lib/cache/resources/default/guild-based.js +91 -0
- package/lib/cache/resources/default/guild-related.d.ts +32 -0
- package/lib/cache/resources/default/guild-related.js +102 -0
- package/lib/cache/resources/emojis.d.ts +7 -0
- package/lib/cache/resources/emojis.js +17 -0
- package/lib/cache/resources/guilds.d.ts +10 -0
- package/lib/cache/resources/guilds.js +117 -0
- package/lib/cache/resources/members.d.ts +10 -0
- package/lib/cache/resources/members.js +41 -0
- package/lib/cache/resources/presence.d.ts +9 -0
- package/lib/cache/resources/presence.js +14 -0
- package/lib/cache/resources/roles.d.ts +7 -0
- package/lib/cache/resources/roles.js +17 -0
- package/lib/cache/resources/stage-instances.d.ts +5 -0
- package/lib/cache/resources/stage-instances.js +8 -0
- package/lib/cache/resources/stickers.d.ts +7 -0
- package/lib/cache/resources/stickers.js +17 -0
- package/lib/cache/resources/threads.d.ts +7 -0
- package/lib/cache/resources/threads.js +17 -0
- package/lib/cache/resources/users.d.ts +7 -0
- package/lib/cache/resources/users.js +17 -0
- package/lib/cache/resources/voice-states.d.ts +9 -0
- package/lib/cache/resources/voice-states.js +13 -0
- package/lib/client/base.d.ts +244 -0
- package/lib/client/base.js +178 -0
- package/lib/client/client.d.ts +32 -0
- package/lib/client/client.js +156 -0
- package/lib/client/httpclient.d.ts +21 -0
- package/lib/client/httpclient.js +143 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +19 -0
- package/lib/client/oninteraction.d.ts +4 -0
- package/lib/client/oninteraction.js +180 -0
- package/lib/client/workerclient.d.ts +28 -0
- package/lib/client/workerclient.js +213 -0
- package/lib/collection.d.ts +233 -0
- package/lib/collection.js +371 -0
- package/lib/commands/applications/chat.d.ts +139 -0
- package/lib/commands/applications/chat.js +173 -0
- package/lib/commands/applications/chatcontext.d.ts +28 -0
- package/lib/commands/applications/chatcontext.js +53 -0
- package/lib/commands/applications/menu.d.ts +39 -0
- package/lib/commands/applications/menu.js +87 -0
- package/lib/commands/applications/menucontext.d.ts +25 -0
- package/lib/commands/applications/menucontext.js +64 -0
- package/lib/commands/applications/options.d.ts +67 -0
- package/lib/commands/applications/options.js +44 -0
- package/lib/commands/applications/shared.d.ts +35 -0
- package/lib/commands/applications/shared.js +2 -0
- package/lib/commands/decorators.d.ts +107 -0
- package/lib/commands/decorators.js +85 -0
- package/lib/commands/handler.d.ts +15 -0
- package/lib/commands/handler.js +140 -0
- package/lib/commands/index.d.ts +8 -0
- package/lib/commands/index.js +24 -0
- package/lib/commands/optionresolver.d.ts +49 -0
- package/lib/commands/optionresolver.js +146 -0
- package/lib/common/bot/watcher.d.ts +53 -0
- package/lib/common/bot/watcher.js +104 -0
- package/lib/common/index.d.ts +13 -0
- package/lib/common/index.js +30 -0
- package/lib/common/it/colors.d.ts +274 -0
- package/lib/common/it/colors.js +453 -0
- package/lib/common/it/constants.d.ts +36 -0
- package/lib/common/it/constants.js +40 -0
- package/lib/common/it/logger.d.ts +114 -0
- package/lib/common/it/logger.js +189 -0
- package/lib/common/it/utils.d.ts +107 -0
- package/lib/common/it/utils.js +275 -0
- package/lib/common/shorters/base.d.ts +5 -0
- package/lib/common/shorters/base.js +10 -0
- package/lib/common/shorters/channels.d.ts +90 -0
- package/lib/common/shorters/channels.js +95 -0
- package/lib/common/shorters/guilds.d.ts +389 -0
- package/lib/common/shorters/guilds.js +350 -0
- package/lib/common/shorters/members.d.ts +115 -0
- package/lib/common/shorters/members.js +179 -0
- package/lib/common/shorters/messages.d.ts +27 -0
- package/lib/common/shorters/messages.js +117 -0
- package/lib/common/shorters/roles.d.ts +12 -0
- package/lib/common/shorters/roles.js +51 -0
- package/lib/common/shorters/templates.d.ts +12 -0
- package/lib/common/shorters/templates.js +29 -0
- package/lib/common/shorters/users.d.ts +11 -0
- package/lib/common/shorters/users.js +42 -0
- package/lib/common/shorters/webhook.d.ts +33 -0
- package/lib/common/shorters/webhook.js +69 -0
- package/lib/common/types/options.d.ts +10 -0
- package/lib/common/types/options.js +2 -0
- package/lib/common/types/resolvables.d.ts +10 -0
- package/lib/common/types/resolvables.js +2 -0
- package/lib/common/types/util.d.ts +90 -0
- package/lib/common/types/util.js +2 -0
- package/lib/common/types/write.d.ts +21 -0
- package/lib/common/types/write.js +2 -0
- package/lib/components/ActionRow.d.ts +10 -0
- package/lib/components/ActionRow.js +13 -0
- package/lib/components/ButtonComponent.d.ts +19 -0
- package/lib/components/ButtonComponent.js +34 -0
- package/lib/components/ChannelSelectMenuComponent.d.ts +6 -0
- package/lib/components/ChannelSelectMenuComponent.js +12 -0
- package/lib/components/MentionableSelectMenuComponent.d.ts +4 -0
- package/lib/components/MentionableSelectMenuComponent.js +7 -0
- package/lib/components/RoleSelectMenuComponent.d.ts +4 -0
- package/lib/components/RoleSelectMenuComponent.js +7 -0
- package/lib/components/StringSelectMenuComponent.d.ts +6 -0
- package/lib/components/StringSelectMenuComponent.js +12 -0
- package/lib/components/TextInputComponent.d.ts +7 -0
- package/lib/components/TextInputComponent.js +14 -0
- package/lib/components/UserSelectMenuComponent.d.ts +4 -0
- package/lib/components/UserSelectMenuComponent.js +7 -0
- package/lib/components/command.d.ts +23 -0
- package/lib/components/command.js +15 -0
- package/lib/components/handler.d.ts +48 -0
- package/lib/components/handler.js +231 -0
- package/lib/components/index.d.ts +20 -0
- package/lib/components/index.js +55 -0
- package/lib/components/listener.d.ts +11 -0
- package/lib/components/listener.js +18 -0
- package/lib/events/event.d.ts +23 -0
- package/lib/events/event.js +2 -0
- package/lib/events/handler.d.ts +19 -0
- package/lib/events/handler.js +112 -0
- package/lib/events/hooks/application_command.d.ts +12 -0
- package/lib/events/hooks/application_command.js +8 -0
- package/lib/events/hooks/auto_moderation.d.ts +22 -0
- package/lib/events/hooks/auto_moderation.js +21 -0
- package/lib/events/hooks/channel.d.ts +11 -0
- package/lib/events/hooks/channel.js +24 -0
- package/lib/events/hooks/custom.d.ts +4 -0
- package/lib/events/hooks/custom.js +11 -0
- package/lib/events/hooks/dispatch.d.ts +5 -0
- package/lib/events/hooks/dispatch.js +12 -0
- package/lib/events/hooks/entitlement.d.ts +35 -0
- package/lib/events/hooks/entitlement.js +16 -0
- package/lib/events/hooks/guild.d.ts +228 -0
- package/lib/events/hooks/guild.js +101 -0
- package/lib/events/hooks/index.d.ts +23 -0
- package/lib/events/hooks/index.js +34 -0
- package/lib/events/hooks/integration.d.ts +94 -0
- package/lib/events/hooks/integration.js +27 -0
- package/lib/events/hooks/interactions.d.ts +4 -0
- package/lib/events/hooks/interactions.js +8 -0
- package/lib/events/hooks/invite.d.ts +21 -0
- package/lib/events/hooks/invite.js +12 -0
- package/lib/events/hooks/message.d.ts +69 -0
- package/lib/events/hooks/message.js +37 -0
- package/lib/events/hooks/presence.d.ts +27 -0
- package/lib/events/hooks/presence.js +8 -0
- package/lib/events/hooks/stage.d.ts +29 -0
- package/lib/events/hooks/stage.js +16 -0
- package/lib/events/hooks/thread.d.ts +198 -0
- package/lib/events/hooks/thread.js +29 -0
- package/lib/events/hooks/typing.d.ts +16 -0
- package/lib/events/hooks/typing.js +14 -0
- package/lib/events/hooks/user.d.ts +4 -0
- package/lib/events/hooks/user.js +8 -0
- package/lib/events/hooks/voice.d.ts +37 -0
- package/lib/events/hooks/voice.js +18 -0
- package/lib/events/hooks/webhook.d.ts +6 -0
- package/lib/events/hooks/webhook.js +8 -0
- package/lib/events/index.d.ts +2 -0
- package/lib/events/index.js +18 -0
- package/lib/index.d.ts +79 -0
- package/lib/index.js +104 -0
- package/lib/langs/handler.d.ts +11 -0
- package/lib/langs/handler.js +34 -0
- package/lib/langs/index.d.ts +2 -0
- package/lib/langs/index.js +18 -0
- package/lib/langs/router.d.ts +18 -0
- package/lib/langs/router.js +42 -0
- package/lib/structures/AnonymousGuild.d.ts +7 -0
- package/lib/structures/AnonymousGuild.js +11 -0
- package/lib/structures/AutoModerationRule.d.ts +22 -0
- package/lib/structures/AutoModerationRule.js +34 -0
- package/lib/structures/ClientUser.d.ts +25 -0
- package/lib/structures/ClientUser.js +52 -0
- package/lib/structures/Guild.d.ts +86 -0
- package/lib/structures/Guild.js +66 -0
- package/lib/structures/GuildEmoji.d.ts +29 -0
- package/lib/structures/GuildEmoji.js +47 -0
- package/lib/structures/GuildMember.d.ts +92 -0
- package/lib/structures/GuildMember.js +137 -0
- package/lib/structures/GuildPreview.d.ts +10 -0
- package/lib/structures/GuildPreview.js +14 -0
- package/lib/structures/GuildRole.d.ts +21 -0
- package/lib/structures/GuildRole.js +32 -0
- package/lib/structures/GuildTemplate.d.ts +23 -0
- package/lib/structures/GuildTemplate.js +36 -0
- package/lib/structures/Interaction.d.ts +152 -0
- package/lib/structures/Interaction.js +409 -0
- package/lib/structures/Message.d.ts +53 -0
- package/lib/structures/Message.js +123 -0
- package/lib/structures/Sticker.d.ts +27 -0
- package/lib/structures/Sticker.js +44 -0
- package/lib/structures/User.d.ts +20 -0
- package/lib/structures/User.js +37 -0
- package/lib/structures/Webhook.d.ts +42 -0
- package/lib/structures/Webhook.js +63 -0
- package/lib/structures/channels.d.ts +232 -0
- package/lib/structures/channels.js +366 -0
- package/lib/structures/extra/Base.d.ts +7 -0
- package/lib/structures/extra/Base.js +39 -0
- package/lib/structures/extra/BaseComponent.d.ts +9 -0
- package/lib/structures/extra/BaseComponent.js +12 -0
- package/lib/structures/extra/BaseGuild.d.ts +40 -0
- package/lib/structures/extra/BaseGuild.js +71 -0
- package/lib/structures/extra/BaseSelectMenuComponent.d.ts +9 -0
- package/lib/structures/extra/BaseSelectMenuComponent.js +13 -0
- package/lib/structures/extra/BitField.d.ts +14 -0
- package/lib/structures/extra/BitField.js +56 -0
- package/lib/structures/extra/DiscordBase.d.ts +18 -0
- package/lib/structures/extra/DiscordBase.js +28 -0
- package/lib/structures/extra/Permissions.d.ts +54 -0
- package/lib/structures/extra/Permissions.js +9 -0
- package/lib/structures/extra/functions.d.ts +11 -0
- package/lib/structures/extra/functions.js +69 -0
- package/lib/structures/index.d.ts +15 -0
- package/lib/structures/index.js +31 -0
- package/lib/websocket/SharedTypes.d.ts +128 -0
- package/lib/websocket/SharedTypes.js +2 -0
- package/lib/websocket/constants/index.d.ts +26 -0
- package/lib/websocket/constants/index.js +31 -0
- package/lib/websocket/discord/basesocket.d.ts +12 -0
- package/lib/websocket/discord/basesocket.js +37 -0
- package/lib/websocket/discord/events/memberUpdate.d.ts +16 -0
- package/lib/websocket/discord/events/memberUpdate.js +47 -0
- package/lib/websocket/discord/events/presenceUpdate.d.ts +24 -0
- package/lib/websocket/discord/events/presenceUpdate.js +46 -0
- package/lib/websocket/discord/handlemessage.d.ts +0 -0
- package/lib/websocket/discord/handlemessage.js +1 -0
- package/lib/websocket/discord/index.d.ts +4 -0
- package/lib/websocket/discord/index.js +20 -0
- package/lib/websocket/discord/memberUpdate.d.ts +16 -0
- package/lib/websocket/discord/memberUpdate.js +47 -0
- package/lib/websocket/discord/shard.d.ts +46 -0
- package/lib/websocket/discord/shard.js +278 -0
- package/lib/websocket/discord/sharder.d.ts +25 -0
- package/lib/websocket/discord/sharder.js +153 -0
- package/lib/websocket/discord/shared.d.ts +99 -0
- package/lib/websocket/discord/shared.js +8 -0
- package/lib/websocket/discord/worker.d.ts +43 -0
- package/lib/websocket/discord/worker.js +2 -0
- package/lib/websocket/discord/workermanager.d.ts +69 -0
- package/lib/websocket/discord/workermanager.js +273 -0
- package/lib/websocket/index.d.ts +3 -0
- package/lib/websocket/index.js +19 -0
- package/lib/websocket/structures/index.d.ts +117 -0
- package/lib/websocket/structures/index.js +261 -0
- package/lib/websocket/structures/timeout.d.ts +20 -0
- package/lib/websocket/structures/timeout.js +75 -0
- package/package.json +70 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./application_command"), exports);
|
|
18
|
+
__exportStar(require("./auto_moderation"), exports);
|
|
19
|
+
__exportStar(require("./channel"), exports);
|
|
20
|
+
__exportStar(require("./custom"), exports);
|
|
21
|
+
__exportStar(require("./dispatch"), exports);
|
|
22
|
+
__exportStar(require("./entitlement"), exports);
|
|
23
|
+
__exportStar(require("./guild"), exports);
|
|
24
|
+
__exportStar(require("./integration"), exports);
|
|
25
|
+
__exportStar(require("./interactions"), exports);
|
|
26
|
+
__exportStar(require("./invite"), exports);
|
|
27
|
+
__exportStar(require("./message"), exports);
|
|
28
|
+
__exportStar(require("./presence"), exports);
|
|
29
|
+
__exportStar(require("./stage"), exports);
|
|
30
|
+
__exportStar(require("./thread"), exports);
|
|
31
|
+
__exportStar(require("./typing"), exports);
|
|
32
|
+
__exportStar(require("./user"), exports);
|
|
33
|
+
__exportStar(require("./voice"), exports);
|
|
34
|
+
__exportStar(require("./webhook"), exports);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { BaseClient } from '../../client/base';
|
|
2
|
+
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../common';
|
|
3
|
+
import { User } from '../../structures';
|
|
4
|
+
export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationType;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
syncing?: boolean | undefined;
|
|
10
|
+
roleId?: string | undefined;
|
|
11
|
+
enableEmoticons?: boolean | undefined;
|
|
12
|
+
expireBehavior?: import("discord-api-types/payloads/v10/guild").IntegrationExpireBehavior | undefined;
|
|
13
|
+
expireGracePeriod?: number | undefined;
|
|
14
|
+
user?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
15
|
+
account: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
syncedAt?: string | undefined;
|
|
20
|
+
subscriberCount?: number | undefined;
|
|
21
|
+
revoked?: boolean | undefined;
|
|
22
|
+
application?: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationApplication | undefined;
|
|
23
|
+
scopes?: import("discord-api-types/payloads/v10/oauth2").OAuth2Scopes[] | undefined;
|
|
24
|
+
guildId: string;
|
|
25
|
+
} | {
|
|
26
|
+
user: User;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationType;
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
syncing?: boolean | undefined;
|
|
32
|
+
roleId?: string | undefined;
|
|
33
|
+
enableEmoticons?: boolean | undefined;
|
|
34
|
+
expireBehavior?: import("discord-api-types/payloads/v10/guild").IntegrationExpireBehavior | undefined;
|
|
35
|
+
expireGracePeriod?: number | undefined;
|
|
36
|
+
account: {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
syncedAt?: string | undefined;
|
|
41
|
+
subscriberCount?: number | undefined;
|
|
42
|
+
revoked?: boolean | undefined;
|
|
43
|
+
application?: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationApplication | undefined;
|
|
44
|
+
scopes?: import("discord-api-types/payloads/v10/oauth2").OAuth2Scopes[] | undefined;
|
|
45
|
+
guildId: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegrationUpdateDispatchData) => {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationType;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
syncing?: boolean | undefined;
|
|
53
|
+
roleId?: string | undefined;
|
|
54
|
+
enableEmoticons?: boolean | undefined;
|
|
55
|
+
expireBehavior?: import("discord-api-types/payloads/v10/guild").IntegrationExpireBehavior | undefined;
|
|
56
|
+
expireGracePeriod?: number | undefined;
|
|
57
|
+
user?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
58
|
+
account: {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
syncedAt?: string | undefined;
|
|
63
|
+
subscriberCount?: number | undefined;
|
|
64
|
+
revoked?: boolean | undefined;
|
|
65
|
+
application?: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationApplication | undefined;
|
|
66
|
+
scopes?: import("discord-api-types/payloads/v10/oauth2").OAuth2Scopes[] | undefined;
|
|
67
|
+
guildId: string;
|
|
68
|
+
} | {
|
|
69
|
+
user: User;
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
type: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationType;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
syncing?: boolean | undefined;
|
|
75
|
+
roleId?: string | undefined;
|
|
76
|
+
enableEmoticons?: boolean | undefined;
|
|
77
|
+
expireBehavior?: import("discord-api-types/payloads/v10/guild").IntegrationExpireBehavior | undefined;
|
|
78
|
+
expireGracePeriod?: number | undefined;
|
|
79
|
+
account: {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
syncedAt?: string | undefined;
|
|
84
|
+
subscriberCount?: number | undefined;
|
|
85
|
+
revoked?: boolean | undefined;
|
|
86
|
+
application?: import("discord-api-types/payloads/v10/guild").APIGuildIntegrationApplication | undefined;
|
|
87
|
+
scopes?: import("discord-api-types/payloads/v10/oauth2").OAuth2Scopes[] | undefined;
|
|
88
|
+
guildId: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const INTEGRATION_DELETE: (_self: BaseClient, data: GatewayIntegrationDeleteDispatchData) => {
|
|
91
|
+
id: string;
|
|
92
|
+
guildId: string;
|
|
93
|
+
applicationId?: string | undefined;
|
|
94
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INTEGRATION_DELETE = exports.INTEGRATION_UPDATE = exports.INTEGRATION_CREATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const structures_1 = require("../../structures");
|
|
6
|
+
const INTEGRATION_CREATE = (self, data) => {
|
|
7
|
+
return data.user
|
|
8
|
+
? {
|
|
9
|
+
...(0, common_1.toCamelCase)(data),
|
|
10
|
+
user: new structures_1.User(self, data.user),
|
|
11
|
+
}
|
|
12
|
+
: (0, common_1.toCamelCase)(data);
|
|
13
|
+
};
|
|
14
|
+
exports.INTEGRATION_CREATE = INTEGRATION_CREATE;
|
|
15
|
+
const INTEGRATION_UPDATE = (self, data) => {
|
|
16
|
+
return data.user
|
|
17
|
+
? {
|
|
18
|
+
...(0, common_1.toCamelCase)(data),
|
|
19
|
+
user: new structures_1.User(self, data.user),
|
|
20
|
+
}
|
|
21
|
+
: (0, common_1.toCamelCase)(data);
|
|
22
|
+
};
|
|
23
|
+
exports.INTEGRATION_UPDATE = INTEGRATION_UPDATE;
|
|
24
|
+
const INTEGRATION_DELETE = (_self, data) => {
|
|
25
|
+
return (0, common_1.toCamelCase)(data);
|
|
26
|
+
};
|
|
27
|
+
exports.INTEGRATION_DELETE = INTEGRATION_DELETE;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseClient } from '../../client/base';
|
|
2
|
+
import type { GatewayInteractionCreateDispatchData } from '../../common';
|
|
3
|
+
import { BaseInteraction } from '../../structures';
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/payloads/v10/_interactions/ping").APIPingInteraction>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INTERACTION_CREATE = void 0;
|
|
4
|
+
const structures_1 = require("../../structures");
|
|
5
|
+
const INTERACTION_CREATE = (self, data) => {
|
|
6
|
+
return structures_1.BaseInteraction.from(self, data);
|
|
7
|
+
};
|
|
8
|
+
exports.INTERACTION_CREATE = INTERACTION_CREATE;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '../../common';
|
|
2
|
+
import type { BaseClient } from '../../client/base';
|
|
3
|
+
export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreateDispatchData) => {
|
|
4
|
+
channelId: string;
|
|
5
|
+
code: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
guildId?: string | undefined;
|
|
8
|
+
inviter?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
9
|
+
maxAge: number;
|
|
10
|
+
maxUses: number;
|
|
11
|
+
targetType?: import("discord-api-types/payloads/v10/invite").InviteTargetType | undefined;
|
|
12
|
+
targetUser?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
13
|
+
targetApplication?: Partial<import("discord-api-types/payloads/v10/application").APIApplication> | undefined;
|
|
14
|
+
temporary: boolean;
|
|
15
|
+
uses: 0;
|
|
16
|
+
};
|
|
17
|
+
export declare const INVITE_DELETE: (_self: BaseClient, data: GatewayInviteDeleteDispatchData) => {
|
|
18
|
+
channelId: string;
|
|
19
|
+
guildId?: string | undefined;
|
|
20
|
+
code: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVITE_DELETE = exports.INVITE_CREATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const INVITE_CREATE = (_self, data) => {
|
|
6
|
+
return (0, common_1.toCamelCase)(data);
|
|
7
|
+
};
|
|
8
|
+
exports.INVITE_CREATE = INVITE_CREATE;
|
|
9
|
+
const INVITE_DELETE = (_self, data) => {
|
|
10
|
+
return (0, common_1.toCamelCase)(data);
|
|
11
|
+
};
|
|
12
|
+
exports.INVITE_DELETE = INVITE_DELETE;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { BaseClient } from '../../client/base';
|
|
2
|
+
import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, MakeRequired, PartialClass } from '../../common';
|
|
3
|
+
import { Message } from '../../structures';
|
|
4
|
+
export declare const MESSAGE_CREATE: (self: BaseClient, data: GatewayMessageCreateDispatchData) => Message;
|
|
5
|
+
export declare const MESSAGE_DELETE: (_self: BaseClient, data: GatewayMessageDeleteDispatchData) => {
|
|
6
|
+
id: string;
|
|
7
|
+
channelId: string;
|
|
8
|
+
guildId?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare const MESSAGE_DELETE_BULK: (_self: BaseClient, data: GatewayMessageDeleteBulkDispatchData) => {
|
|
11
|
+
ids: string[];
|
|
12
|
+
channelId: string;
|
|
13
|
+
guildId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
16
|
+
emoji: {
|
|
17
|
+
roles?: string[] | undefined;
|
|
18
|
+
user?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
19
|
+
requireColons?: boolean | undefined;
|
|
20
|
+
managed?: boolean | undefined;
|
|
21
|
+
available?: boolean | undefined;
|
|
22
|
+
id: string | null;
|
|
23
|
+
name: string | null;
|
|
24
|
+
animated?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
guildId?: string | undefined;
|
|
27
|
+
channelId: string;
|
|
28
|
+
messageId: string;
|
|
29
|
+
member?: import("discord-api-types/payloads/v10/guild").APIGuildMember | undefined;
|
|
30
|
+
userId: string;
|
|
31
|
+
messageAuthorId?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayMessageReactionRemoveDispatchData) => {
|
|
34
|
+
emoji: {
|
|
35
|
+
roles?: string[] | undefined;
|
|
36
|
+
user?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
37
|
+
requireColons?: boolean | undefined;
|
|
38
|
+
managed?: boolean | undefined;
|
|
39
|
+
available?: boolean | undefined;
|
|
40
|
+
id: string | null;
|
|
41
|
+
name: string | null;
|
|
42
|
+
animated?: boolean | undefined;
|
|
43
|
+
};
|
|
44
|
+
guildId?: string | undefined;
|
|
45
|
+
channelId: string;
|
|
46
|
+
messageId: string;
|
|
47
|
+
userId: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const MESSAGE_REACTION_REMOVE_ALL: (_self: BaseClient, data: GatewayMessageReactionRemoveAllDispatchData) => {
|
|
50
|
+
channelId: string;
|
|
51
|
+
messageId: string;
|
|
52
|
+
guildId?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: GatewayMessageReactionRemoveEmojiDispatchData) => {
|
|
55
|
+
emoji: {
|
|
56
|
+
roles?: string[] | undefined;
|
|
57
|
+
user?: import("discord-api-types/payloads/v10/user").APIUser | undefined;
|
|
58
|
+
requireColons?: boolean | undefined;
|
|
59
|
+
managed?: boolean | undefined;
|
|
60
|
+
available?: boolean | undefined;
|
|
61
|
+
id: string | null;
|
|
62
|
+
name: string | null;
|
|
63
|
+
animated?: boolean | undefined;
|
|
64
|
+
};
|
|
65
|
+
channelId: string;
|
|
66
|
+
messageId: string;
|
|
67
|
+
guildId?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
export declare const MESSAGE_UPDATE: (self: BaseClient, data: GatewayMessageUpdateDispatchData) => MakeRequired<PartialClass<Message>, 'id' | 'channelId' | 'createdAt' | 'createdTimestamp' | 'rest' | 'cache' | 'api' | 'client'>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MESSAGE_UPDATE = exports.MESSAGE_REACTION_REMOVE_EMOJI = exports.MESSAGE_REACTION_REMOVE_ALL = exports.MESSAGE_REACTION_REMOVE = exports.MESSAGE_REACTION_ADD = exports.MESSAGE_DELETE_BULK = exports.MESSAGE_DELETE = exports.MESSAGE_CREATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const structures_1 = require("../../structures");
|
|
6
|
+
const MESSAGE_CREATE = (self, data) => {
|
|
7
|
+
return new structures_1.Message(self, data);
|
|
8
|
+
};
|
|
9
|
+
exports.MESSAGE_CREATE = MESSAGE_CREATE;
|
|
10
|
+
const MESSAGE_DELETE = (_self, data) => {
|
|
11
|
+
return (0, common_1.toCamelCase)(data);
|
|
12
|
+
};
|
|
13
|
+
exports.MESSAGE_DELETE = MESSAGE_DELETE;
|
|
14
|
+
const MESSAGE_DELETE_BULK = (_self, data) => {
|
|
15
|
+
return (0, common_1.toCamelCase)(data);
|
|
16
|
+
};
|
|
17
|
+
exports.MESSAGE_DELETE_BULK = MESSAGE_DELETE_BULK;
|
|
18
|
+
const MESSAGE_REACTION_ADD = (_self, data) => {
|
|
19
|
+
return (0, common_1.toCamelCase)(data);
|
|
20
|
+
};
|
|
21
|
+
exports.MESSAGE_REACTION_ADD = MESSAGE_REACTION_ADD;
|
|
22
|
+
const MESSAGE_REACTION_REMOVE = (_self, data) => {
|
|
23
|
+
return (0, common_1.toCamelCase)(data);
|
|
24
|
+
};
|
|
25
|
+
exports.MESSAGE_REACTION_REMOVE = MESSAGE_REACTION_REMOVE;
|
|
26
|
+
const MESSAGE_REACTION_REMOVE_ALL = (_self, data) => {
|
|
27
|
+
return (0, common_1.toCamelCase)(data);
|
|
28
|
+
};
|
|
29
|
+
exports.MESSAGE_REACTION_REMOVE_ALL = MESSAGE_REACTION_REMOVE_ALL;
|
|
30
|
+
const MESSAGE_REACTION_REMOVE_EMOJI = (_self, data) => {
|
|
31
|
+
return (0, common_1.toCamelCase)(data);
|
|
32
|
+
};
|
|
33
|
+
exports.MESSAGE_REACTION_REMOVE_EMOJI = MESSAGE_REACTION_REMOVE_EMOJI;
|
|
34
|
+
const MESSAGE_UPDATE = (self, data) => {
|
|
35
|
+
return new structures_1.Message(self, data);
|
|
36
|
+
};
|
|
37
|
+
exports.MESSAGE_UPDATE = MESSAGE_UPDATE;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { GatewayPresenceUpdateDispatchData } from '../../common';
|
|
2
|
+
import type { BaseClient } from '../../client/base';
|
|
3
|
+
export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceUpdateDispatchData) => {
|
|
4
|
+
user: {
|
|
5
|
+
id: string;
|
|
6
|
+
username?: string | undefined;
|
|
7
|
+
discriminator?: string | undefined;
|
|
8
|
+
globalName?: string | null | undefined;
|
|
9
|
+
avatar?: string | null | undefined;
|
|
10
|
+
bot?: boolean | undefined;
|
|
11
|
+
system?: boolean | undefined;
|
|
12
|
+
mfaEnabled?: boolean | undefined;
|
|
13
|
+
banner?: string | null | undefined;
|
|
14
|
+
accentColor?: number | null | undefined;
|
|
15
|
+
locale?: string | undefined;
|
|
16
|
+
verified?: boolean | undefined;
|
|
17
|
+
email?: string | null | undefined;
|
|
18
|
+
flags?: import("discord-api-types/payloads/v10/user").UserFlags | undefined;
|
|
19
|
+
premiumType?: import("discord-api-types/payloads/v10/user").UserPremiumType | undefined;
|
|
20
|
+
publicFlags?: import("discord-api-types/payloads/v10/user").UserFlags | undefined;
|
|
21
|
+
avatarDecoration?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
guildId: string;
|
|
24
|
+
status?: import("discord-api-types/payloads/v10/gateway").PresenceUpdateReceiveStatus | undefined;
|
|
25
|
+
activities?: import("discord-api-types/payloads/v10/gateway").GatewayActivity[] | undefined;
|
|
26
|
+
clientStatus?: import("discord-api-types/payloads/v10/gateway").GatewayPresenceClientStatus | undefined;
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESENCE_UPDATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const PRESENCE_UPDATE = (_self, data) => {
|
|
6
|
+
return (0, common_1.toCamelCase)(data);
|
|
7
|
+
};
|
|
8
|
+
exports.PRESENCE_UPDATE = PRESENCE_UPDATE;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData } from '../../common';
|
|
2
|
+
import type { BaseClient } from '../../client/base';
|
|
3
|
+
export declare const STAGE_INSTANCE_CREATE: (_self: BaseClient, data: GatewayStageInstanceCreateDispatchData) => {
|
|
4
|
+
id: string;
|
|
5
|
+
guildId: string;
|
|
6
|
+
channelId: string;
|
|
7
|
+
topic: string;
|
|
8
|
+
privacyLevel: import("discord-api-types/payloads/v10/stageInstance").StageInstancePrivacyLevel;
|
|
9
|
+
discoverableDisabled: boolean;
|
|
10
|
+
guildScheduledEventId?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare const STAGE_INSTANCE_DELETE: (_self: BaseClient, data: GatewayStageInstanceDeleteDispatchData) => {
|
|
13
|
+
id: string;
|
|
14
|
+
guildId: string;
|
|
15
|
+
channelId: string;
|
|
16
|
+
topic: string;
|
|
17
|
+
privacyLevel: import("discord-api-types/payloads/v10/stageInstance").StageInstancePrivacyLevel;
|
|
18
|
+
discoverableDisabled: boolean;
|
|
19
|
+
guildScheduledEventId?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare const STAGE_INSTANCE_UPDATE: (_self: BaseClient, data: GatewayStageInstanceDeleteDispatchData) => {
|
|
22
|
+
id: string;
|
|
23
|
+
guildId: string;
|
|
24
|
+
channelId: string;
|
|
25
|
+
topic: string;
|
|
26
|
+
privacyLevel: import("discord-api-types/payloads/v10/stageInstance").StageInstancePrivacyLevel;
|
|
27
|
+
discoverableDisabled: boolean;
|
|
28
|
+
guildScheduledEventId?: string | undefined;
|
|
29
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STAGE_INSTANCE_UPDATE = exports.STAGE_INSTANCE_DELETE = exports.STAGE_INSTANCE_CREATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const STAGE_INSTANCE_CREATE = (_self, data) => {
|
|
6
|
+
return (0, common_1.toCamelCase)(data);
|
|
7
|
+
};
|
|
8
|
+
exports.STAGE_INSTANCE_CREATE = STAGE_INSTANCE_CREATE;
|
|
9
|
+
const STAGE_INSTANCE_DELETE = (_self, data) => {
|
|
10
|
+
return (0, common_1.toCamelCase)(data);
|
|
11
|
+
};
|
|
12
|
+
exports.STAGE_INSTANCE_DELETE = STAGE_INSTANCE_DELETE;
|
|
13
|
+
const STAGE_INSTANCE_UPDATE = (_self, data) => {
|
|
14
|
+
return (0, common_1.toCamelCase)(data);
|
|
15
|
+
};
|
|
16
|
+
exports.STAGE_INSTANCE_UPDATE = STAGE_INSTANCE_UPDATE;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { BaseClient } from '../../client/base';
|
|
2
|
+
import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../common';
|
|
3
|
+
import { ThreadChannel } from '../../structures';
|
|
4
|
+
export declare const THREAD_CREATE: (self: BaseClient, data: GatewayThreadCreateDispatchData) => ThreadChannel;
|
|
5
|
+
export declare const THREAD_DELETE: (self: BaseClient, data: GatewayThreadDeleteDispatchData) => ThreadChannel;
|
|
6
|
+
export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadListSyncDispatchData) => {
|
|
7
|
+
guildId: string;
|
|
8
|
+
channelIds?: string[] | undefined;
|
|
9
|
+
threads: ({
|
|
10
|
+
name: null;
|
|
11
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.DM;
|
|
12
|
+
id: string;
|
|
13
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
14
|
+
lastMessageId?: string | null | undefined;
|
|
15
|
+
lastPinTimestamp?: string | null | undefined;
|
|
16
|
+
recipients?: import("discord-api-types/payloads/v10/user").APIUser[] | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
bitrate?: number | undefined;
|
|
19
|
+
userLimit?: number | undefined;
|
|
20
|
+
rtcRegion?: string | null | undefined;
|
|
21
|
+
videoQualityMode?: import("discord-api-types/payloads/v10/channel").VideoQualityMode | undefined;
|
|
22
|
+
name: string;
|
|
23
|
+
guildId?: string | undefined;
|
|
24
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
25
|
+
position: number;
|
|
26
|
+
parentId?: string | null | undefined;
|
|
27
|
+
nsfw?: boolean | undefined;
|
|
28
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildVoice;
|
|
29
|
+
id: string;
|
|
30
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
31
|
+
rateLimitPerUser?: number | undefined;
|
|
32
|
+
lastMessageId?: string | null | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
defaultForumLayout: import("discord-api-types/payloads/v10/channel").ForumLayoutType;
|
|
35
|
+
topic?: string | null | undefined;
|
|
36
|
+
lastMessageId?: string | null | undefined;
|
|
37
|
+
rateLimitPerUser?: number | undefined;
|
|
38
|
+
lastPinTimestamp?: string | null | undefined;
|
|
39
|
+
defaultAutoArchiveDuration?: import("discord-api-types/payloads/v10/channel").ThreadAutoArchiveDuration | undefined;
|
|
40
|
+
availableTags: {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
moderated: boolean;
|
|
44
|
+
emojiId: string | null;
|
|
45
|
+
emojiName: string | null;
|
|
46
|
+
}[];
|
|
47
|
+
defaultThreadRateLimitPerUser?: number | undefined;
|
|
48
|
+
defaultReactionEmoji: import("discord-api-types/payloads/v10/channel").APIGuildForumDefaultReactionEmoji | null;
|
|
49
|
+
defaultSortOrder: import("discord-api-types/payloads/v10/channel").SortOrderType | null;
|
|
50
|
+
name: string;
|
|
51
|
+
guildId?: string | undefined;
|
|
52
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
53
|
+
position: number;
|
|
54
|
+
parentId?: string | null | undefined;
|
|
55
|
+
nsfw?: boolean | undefined;
|
|
56
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildForum;
|
|
57
|
+
id: string;
|
|
58
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
member?: import("discord-api-types/payloads/v10/channel").APIThreadMember | undefined;
|
|
61
|
+
threadMetadata?: import("discord-api-types/payloads/v10/channel").APIThreadMetadata | undefined;
|
|
62
|
+
messageCount?: number | undefined;
|
|
63
|
+
memberCount?: number | undefined;
|
|
64
|
+
ownerId?: string | undefined;
|
|
65
|
+
totalMessageSent?: number | undefined;
|
|
66
|
+
appliedTags: string[];
|
|
67
|
+
type: import("discord-api-types/payloads/v10/channel").ThreadChannelType;
|
|
68
|
+
id: string;
|
|
69
|
+
rateLimitPerUser?: number | undefined;
|
|
70
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
71
|
+
lastMessageId?: string | null | undefined;
|
|
72
|
+
lastPinTimestamp?: string | null | undefined;
|
|
73
|
+
name: string;
|
|
74
|
+
guildId?: string | undefined;
|
|
75
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
76
|
+
position: number;
|
|
77
|
+
parentId?: string | null | undefined;
|
|
78
|
+
nsfw?: boolean | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
guildId?: string | undefined;
|
|
82
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
83
|
+
position: number;
|
|
84
|
+
parentId?: string | null | undefined;
|
|
85
|
+
nsfw?: boolean | undefined;
|
|
86
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildCategory;
|
|
87
|
+
id: string;
|
|
88
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
defaultAutoArchiveDuration?: import("discord-api-types/payloads/v10/channel").ThreadAutoArchiveDuration | undefined;
|
|
91
|
+
defaultThreadRateLimitPerUser?: number | undefined;
|
|
92
|
+
topic?: string | null | undefined;
|
|
93
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildAnnouncement;
|
|
94
|
+
id: string;
|
|
95
|
+
rateLimitPerUser?: number | undefined;
|
|
96
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
97
|
+
lastMessageId?: string | null | undefined;
|
|
98
|
+
lastPinTimestamp?: string | null | undefined;
|
|
99
|
+
name: string;
|
|
100
|
+
guildId?: string | undefined;
|
|
101
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
102
|
+
position: number;
|
|
103
|
+
parentId?: string | null | undefined;
|
|
104
|
+
nsfw?: boolean | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
name: string | null;
|
|
107
|
+
applicationId?: string | undefined;
|
|
108
|
+
icon?: string | null | undefined;
|
|
109
|
+
ownerId?: string | undefined;
|
|
110
|
+
lastMessageId?: string | null | undefined;
|
|
111
|
+
managed?: boolean | undefined;
|
|
112
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GroupDM;
|
|
113
|
+
id: string;
|
|
114
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
115
|
+
lastPinTimestamp?: string | null | undefined;
|
|
116
|
+
recipients?: import("discord-api-types/payloads/v10/user").APIUser[] | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
defaultAutoArchiveDuration?: import("discord-api-types/payloads/v10/channel").ThreadAutoArchiveDuration | undefined;
|
|
119
|
+
defaultThreadRateLimitPerUser?: number | undefined;
|
|
120
|
+
topic?: string | null | undefined;
|
|
121
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildText;
|
|
122
|
+
id: string;
|
|
123
|
+
rateLimitPerUser?: number | undefined;
|
|
124
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
125
|
+
lastMessageId?: string | null | undefined;
|
|
126
|
+
lastPinTimestamp?: string | null | undefined;
|
|
127
|
+
name: string;
|
|
128
|
+
guildId?: string | undefined;
|
|
129
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
130
|
+
position: number;
|
|
131
|
+
parentId?: string | null | undefined;
|
|
132
|
+
nsfw?: boolean | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
bitrate?: number | undefined;
|
|
135
|
+
userLimit?: number | undefined;
|
|
136
|
+
rtcRegion?: string | null | undefined;
|
|
137
|
+
videoQualityMode?: import("discord-api-types/payloads/v10/channel").VideoQualityMode | undefined;
|
|
138
|
+
name: string;
|
|
139
|
+
guildId?: string | undefined;
|
|
140
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
141
|
+
position: number;
|
|
142
|
+
parentId?: string | null | undefined;
|
|
143
|
+
nsfw?: boolean | undefined;
|
|
144
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildStageVoice;
|
|
145
|
+
id: string;
|
|
146
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
147
|
+
rateLimitPerUser?: number | undefined;
|
|
148
|
+
lastMessageId?: string | null | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
topic?: string | null | undefined;
|
|
151
|
+
lastMessageId?: string | null | undefined;
|
|
152
|
+
rateLimitPerUser?: number | undefined;
|
|
153
|
+
lastPinTimestamp?: string | null | undefined;
|
|
154
|
+
defaultAutoArchiveDuration?: import("discord-api-types/payloads/v10/channel").ThreadAutoArchiveDuration | undefined;
|
|
155
|
+
availableTags: {
|
|
156
|
+
id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
moderated: boolean;
|
|
159
|
+
emojiId: string | null;
|
|
160
|
+
emojiName: string | null;
|
|
161
|
+
}[];
|
|
162
|
+
defaultThreadRateLimitPerUser?: number | undefined;
|
|
163
|
+
defaultReactionEmoji: import("discord-api-types/payloads/v10/channel").APIGuildForumDefaultReactionEmoji | null;
|
|
164
|
+
defaultSortOrder: import("discord-api-types/payloads/v10/channel").SortOrderType | null;
|
|
165
|
+
name: string;
|
|
166
|
+
guildId?: string | undefined;
|
|
167
|
+
permissionOverwrites?: import("discord-api-types/payloads/v10/channel").APIOverwrite[] | undefined;
|
|
168
|
+
position: number;
|
|
169
|
+
parentId?: string | null | undefined;
|
|
170
|
+
nsfw?: boolean | undefined;
|
|
171
|
+
type: import("discord-api-types/payloads/v10/channel").ChannelType.GuildMedia;
|
|
172
|
+
id: string;
|
|
173
|
+
flags?: import("discord-api-types/payloads/v10/channel").ChannelFlags | undefined;
|
|
174
|
+
})[];
|
|
175
|
+
members: {
|
|
176
|
+
id?: string | undefined;
|
|
177
|
+
userId?: string | undefined;
|
|
178
|
+
joinTimestamp: string;
|
|
179
|
+
flags: import("discord-api-types/payloads/v10/channel").ThreadMemberFlags;
|
|
180
|
+
member?: import("discord-api-types/payloads/v10/guild").APIGuildMember | undefined;
|
|
181
|
+
}[];
|
|
182
|
+
};
|
|
183
|
+
export declare const THREAD_MEMBER_UPDATE: (_self: BaseClient, data: GatewayThreadMemberUpdateDispatchData) => {
|
|
184
|
+
id?: string | undefined;
|
|
185
|
+
userId?: string | undefined;
|
|
186
|
+
joinTimestamp: string;
|
|
187
|
+
flags: import("discord-api-types/payloads/v10/channel").ThreadMemberFlags;
|
|
188
|
+
member?: import("discord-api-types/payloads/v10/guild").APIGuildMember | undefined;
|
|
189
|
+
guildId: string;
|
|
190
|
+
};
|
|
191
|
+
export declare const THREAD_MEMBERS_UPDATE: (_self: BaseClient, data: GatewayThreadMembersUpdateDispatchData) => {
|
|
192
|
+
id: string;
|
|
193
|
+
guildId: string;
|
|
194
|
+
memberCount: number;
|
|
195
|
+
addedMembers?: import("discord-api-types/payloads/v10/channel").APIThreadMember[] | undefined;
|
|
196
|
+
removedMemberIds?: string[] | undefined;
|
|
197
|
+
};
|
|
198
|
+
export declare const THREAD_UPDATE: (self: BaseClient, data: GatewayThreadUpdateDispatchData) => ThreadChannel;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.THREAD_UPDATE = exports.THREAD_MEMBERS_UPDATE = exports.THREAD_MEMBER_UPDATE = exports.THREAD_LIST_SYNC = exports.THREAD_DELETE = exports.THREAD_CREATE = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const structures_1 = require("../../structures");
|
|
6
|
+
const THREAD_CREATE = (self, data) => {
|
|
7
|
+
return new structures_1.ThreadChannel(self, data);
|
|
8
|
+
};
|
|
9
|
+
exports.THREAD_CREATE = THREAD_CREATE;
|
|
10
|
+
const THREAD_DELETE = (self, data) => {
|
|
11
|
+
return new structures_1.ThreadChannel(self, data);
|
|
12
|
+
};
|
|
13
|
+
exports.THREAD_DELETE = THREAD_DELETE;
|
|
14
|
+
const THREAD_LIST_SYNC = (_self, data) => {
|
|
15
|
+
return (0, common_1.toCamelCase)(data);
|
|
16
|
+
};
|
|
17
|
+
exports.THREAD_LIST_SYNC = THREAD_LIST_SYNC;
|
|
18
|
+
const THREAD_MEMBER_UPDATE = (_self, data) => {
|
|
19
|
+
return (0, common_1.toCamelCase)(data);
|
|
20
|
+
};
|
|
21
|
+
exports.THREAD_MEMBER_UPDATE = THREAD_MEMBER_UPDATE;
|
|
22
|
+
const THREAD_MEMBERS_UPDATE = (_self, data) => {
|
|
23
|
+
return (0, common_1.toCamelCase)(data);
|
|
24
|
+
};
|
|
25
|
+
exports.THREAD_MEMBERS_UPDATE = THREAD_MEMBERS_UPDATE;
|
|
26
|
+
const THREAD_UPDATE = (self, data) => {
|
|
27
|
+
return new structures_1.ThreadChannel(self, data);
|
|
28
|
+
};
|
|
29
|
+
exports.THREAD_UPDATE = THREAD_UPDATE;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GatewayTypingStartDispatchData } from '../../common';
|
|
2
|
+
import type { BaseClient } from '../../client/base';
|
|
3
|
+
import { GuildMember } from '../../structures';
|
|
4
|
+
export declare const TYPING_START: (self: BaseClient, data: GatewayTypingStartDispatchData) => {
|
|
5
|
+
channelId: string;
|
|
6
|
+
guildId?: string | undefined;
|
|
7
|
+
userId: string;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
member?: import("discord-api-types/payloads/v10/guild").APIGuildMember | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
member: GuildMember;
|
|
12
|
+
channelId: string;
|
|
13
|
+
guildId?: string | undefined;
|
|
14
|
+
userId: string;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
};
|