chapterjs 0.1.2 → 0.1.4
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/dist/assets/asset.d.ts +46 -0
- package/dist/assets/asset.js +86 -0
- package/dist/assets/public.d.ts +19 -0
- package/dist/assets/public.js +120 -0
- package/dist/cache/cache.d.ts +62 -0
- package/dist/cache/cache.js +80 -0
- package/dist/cache/store.d.ts +45 -0
- package/dist/cache/store.js +53 -0
- package/dist/cli/build.d.ts +41 -0
- package/dist/cli/build.js +206 -0
- package/dist/cli/cli.js +108 -25
- package/dist/cli/cluster.d.ts +70 -0
- package/dist/cli/cluster.js +213 -0
- package/dist/cli/dev.d.ts +18 -1
- package/dist/cli/dev.js +252 -198
- package/dist/cli/env.d.ts +31 -0
- package/dist/cli/env.js +93 -0
- package/dist/cli/log.d.ts +13 -0
- package/dist/cli/log.js +17 -0
- package/dist/cli/node-version.d.ts +8 -0
- package/dist/cli/node-version.js +13 -0
- package/dist/cli/preflight.d.ts +36 -0
- package/dist/cli/preflight.js +122 -0
- package/dist/cli/project.d.ts +122 -0
- package/dist/cli/project.js +452 -0
- package/dist/cli/start.d.ts +25 -0
- package/dist/cli/start.js +225 -0
- package/dist/commands/autocomplete.d.ts +13 -0
- package/dist/commands/autocomplete.js +159 -0
- package/dist/commands/command.d.ts +346 -0
- package/dist/commands/command.js +28 -0
- package/dist/commands/convention.d.ts +64 -0
- package/dist/commands/convention.js +464 -0
- package/dist/commands/register.d.ts +18 -0
- package/dist/commands/register.js +42 -0
- package/dist/commands/router.d.ts +20 -0
- package/dist/commands/router.js +228 -0
- package/dist/commands/tree.d.ts +43 -0
- package/dist/commands/tree.js +206 -0
- package/dist/commands/twins.d.ts +15 -0
- package/dist/commands/twins.js +78 -0
- package/dist/components/button.d.ts +79 -0
- package/dist/components/button.js +108 -0
- package/dist/components/component.d.ts +140 -0
- package/dist/components/component.js +39 -0
- package/dist/components/convention.d.ts +35 -0
- package/dist/components/convention.js +339 -0
- package/dist/components/custom-id.d.ts +72 -0
- package/dist/components/custom-id.js +128 -0
- package/dist/components/embed.d.ts +28 -0
- package/dist/components/embed.js +11 -0
- package/dist/components/file.d.ts +30 -0
- package/dist/components/file.js +52 -0
- package/dist/components/instance.d.ts +100 -0
- package/dist/components/instance.js +86 -0
- package/dist/components/layout.d.ts +103 -0
- package/dist/components/layout.js +279 -0
- package/dist/components/modal.d.ts +244 -0
- package/dist/components/modal.js +399 -0
- package/dist/components/options.d.ts +41 -0
- package/dist/components/options.js +101 -0
- package/dist/components/render.d.ts +12 -0
- package/dist/components/render.js +58 -0
- package/dist/components/router.d.ts +18 -0
- package/dist/components/router.js +256 -0
- package/dist/components/select.d.ts +144 -0
- package/dist/components/select.js +179 -0
- package/dist/core/bot.d.ts +99 -0
- package/dist/core/bot.js +174 -0
- package/dist/core/memory.d.ts +66 -0
- package/dist/core/memory.js +115 -0
- package/dist/discord/api.d.ts +112 -0
- package/dist/discord/api.js +115 -0
- package/dist/discord/cdn.d.ts +67 -0
- package/dist/discord/cdn.js +100 -0
- package/dist/discord/codes.d.ts +171 -0
- package/dist/discord/codes.js +421 -0
- package/dist/discord/endpoint.d.ts +56 -0
- package/dist/discord/endpoint.js +53 -0
- package/dist/discord/endpoints.d.ts +1529 -0
- package/dist/discord/endpoints.js +1139 -0
- package/dist/discord/formatting.d.ts +67 -0
- package/dist/discord/formatting.js +87 -0
- package/dist/discord/index.d.ts +10 -0
- package/dist/discord/index.js +13 -0
- package/dist/discord/intents.d.ts +48 -0
- package/dist/discord/intents.js +128 -0
- package/dist/discord/permissions.d.ts +94 -0
- package/dist/discord/permissions.js +185 -0
- package/dist/discord/snowflake.d.ts +21 -0
- package/dist/discord/snowflake.js +36 -0
- package/dist/discord/types/application-command.d.ts +332 -0
- package/dist/discord/types/application-command.js +48 -0
- package/dist/discord/types/application-role-connection-metadata.d.ts +42 -0
- package/dist/discord/types/application-role-connection-metadata.js +22 -0
- package/dist/discord/types/application.d.ts +208 -0
- package/dist/discord/types/application.js +48 -0
- package/dist/discord/types/audit-log.d.ts +255 -0
- package/dist/discord/types/audit-log.js +144 -0
- package/dist/discord/types/auto-moderation.d.ts +167 -0
- package/dist/discord/types/auto-moderation.js +52 -0
- package/dist/discord/types/channel.d.ts +557 -0
- package/dist/discord/types/channel.js +88 -0
- package/dist/discord/types/common.d.ts +54 -0
- package/dist/discord/types/common.js +38 -0
- package/dist/discord/types/component.d.ts +775 -0
- package/dist/discord/types/component.js +76 -0
- package/dist/discord/types/emoji.d.ts +74 -0
- package/dist/discord/types/emoji.js +1 -0
- package/dist/discord/types/entitlement.d.ts +84 -0
- package/dist/discord/types/entitlement.js +22 -0
- package/dist/discord/types/gateway-events.d.ts +1148 -0
- package/dist/discord/types/gateway-events.js +54 -0
- package/dist/discord/types/gateway.d.ts +38 -0
- package/dist/discord/types/gateway.js +1 -0
- package/dist/discord/types/guild-scheduled-event.d.ts +257 -0
- package/dist/discord/types/guild-scheduled-event.js +68 -0
- package/dist/discord/types/guild-template.d.ts +51 -0
- package/dist/discord/types/guild-template.js +1 -0
- package/dist/discord/types/guild.d.ts +910 -0
- package/dist/discord/types/guild.js +153 -0
- package/dist/discord/types/index.d.ts +31 -0
- package/dist/discord/types/index.js +31 -0
- package/dist/discord/types/interaction.d.ts +321 -0
- package/dist/discord/types/interaction.js +47 -0
- package/dist/discord/types/invite.d.ts +158 -0
- package/dist/discord/types/invite.js +39 -0
- package/dist/discord/types/message.d.ts +834 -0
- package/dist/discord/types/message.js +159 -0
- package/dist/discord/types/oauth2.d.ts +22 -0
- package/dist/discord/types/oauth2.js +1 -0
- package/dist/discord/types/permissions.d.ts +183 -0
- package/dist/discord/types/permissions.js +118 -0
- package/dist/discord/types/poll.d.ts +106 -0
- package/dist/discord/types/poll.js +8 -0
- package/dist/discord/types/sku.d.ts +47 -0
- package/dist/discord/types/sku.js +26 -0
- package/dist/discord/types/soundboard.d.ts +71 -0
- package/dist/discord/types/soundboard.js +1 -0
- package/dist/discord/types/stage-instance.d.ts +58 -0
- package/dist/discord/types/stage-instance.js +10 -0
- package/dist/discord/types/sticker.d.ts +115 -0
- package/dist/discord/types/sticker.js +20 -0
- package/dist/discord/types/subscription.d.ts +54 -0
- package/dist/discord/types/subscription.js +12 -0
- package/dist/discord/types/team.d.ts +55 -0
- package/dist/discord/types/team.js +21 -0
- package/dist/discord/types/user.d.ts +273 -0
- package/dist/discord/types/user.js +83 -0
- package/dist/discord/types/voice.d.ts +72 -0
- package/dist/discord/types/voice.js +1 -0
- package/dist/discord/types/webhook.d.ts +184 -0
- package/dist/discord/types/webhook.js +12 -0
- package/dist/events/convention.d.ts +25 -0
- package/dist/events/convention.js +97 -0
- package/dist/events/event.d.ts +8 -0
- package/dist/events/event.js +20 -0
- package/dist/events/registry.d.ts +706 -0
- package/dist/events/registry.js +839 -0
- package/dist/events/router.d.ts +45 -0
- package/dist/events/router.js +133 -0
- package/dist/events/types.d.ts +7 -0
- package/dist/events/types.js +48 -0
- package/dist/gateway/errors.d.ts +18 -0
- package/dist/gateway/errors.js +47 -0
- package/dist/gateway/gateway.d.ts +64 -0
- package/dist/gateway/gateway.js +117 -0
- package/dist/gateway/identify-queue.d.ts +25 -0
- package/dist/gateway/identify-queue.js +29 -0
- package/dist/gateway/shard.d.ts +94 -0
- package/dist/gateway/shard.js +414 -0
- package/dist/gateway/state.d.ts +11 -0
- package/dist/gateway/state.js +184 -0
- package/dist/index.d.ts +55 -18
- package/dist/index.js +38 -12
- package/dist/interactions/cooldown.d.ts +33 -0
- package/dist/interactions/cooldown.js +74 -0
- package/dist/interactions/dispatch.d.ts +91 -0
- package/dist/interactions/dispatch.js +110 -0
- package/dist/loader/generated.d.ts +37 -0
- package/dist/loader/generated.js +114 -0
- package/dist/loader/hot.d.ts +13 -0
- package/dist/loader/hot.js +85 -0
- package/dist/loader/loader.d.ts +72 -0
- package/dist/loader/loader.js +135 -0
- package/dist/loader/locate.d.ts +10 -0
- package/dist/loader/locate.js +36 -0
- package/dist/loader/watch.d.ts +17 -0
- package/dist/loader/watch.js +66 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +6 -0
- package/dist/messages/commands.d.ts +23 -0
- package/dist/messages/commands.js +123 -0
- package/dist/messages/convention.d.ts +89 -0
- package/dist/messages/convention.js +347 -0
- package/dist/messages/messages.d.ts +219 -0
- package/dist/messages/messages.js +30 -0
- package/dist/messages/phrases.d.ts +23 -0
- package/dist/messages/phrases.js +44 -0
- package/dist/messages/translate.d.ts +100 -0
- package/dist/messages/translate.js +249 -0
- package/dist/presence/convention.d.ts +26 -0
- package/dist/presence/convention.js +133 -0
- package/dist/presence/presence.d.ts +57 -0
- package/dist/presence/presence.js +27 -0
- package/dist/rest/errors.d.ts +55 -0
- package/dist/rest/errors.js +92 -0
- package/dist/rest/rate-limiter.d.ts +46 -0
- package/dist/rest/rate-limiter.js +153 -0
- package/dist/rest/rest.d.ts +63 -0
- package/dist/rest/rest.js +194 -0
- package/dist/structures/base.d.ts +48 -0
- package/dist/structures/base.js +84 -0
- package/dist/structures/channel.d.ts +380 -0
- package/dist/structures/channel.js +627 -0
- package/dist/structures/context.d.ts +30 -0
- package/dist/structures/context.js +7 -0
- package/dist/structures/emoji.d.ts +46 -0
- package/dist/structures/emoji.js +65 -0
- package/dist/structures/entities.d.ts +62 -0
- package/dist/structures/entities.js +226 -0
- package/dist/structures/guild.d.ts +348 -0
- package/dist/structures/guild.js +466 -0
- package/dist/structures/interaction.d.ts +197 -0
- package/dist/structures/interaction.js +396 -0
- package/dist/structures/invite.d.ts +38 -0
- package/dist/structures/invite.js +57 -0
- package/dist/structures/known.d.ts +28 -0
- package/dist/structures/known.js +58 -0
- package/dist/structures/member.d.ts +140 -0
- package/dist/structures/member.js +260 -0
- package/dist/structures/message.d.ts +197 -0
- package/dist/structures/message.js +268 -0
- package/dist/structures/payload.d.ts +91 -0
- package/dist/structures/payload.js +184 -0
- package/dist/structures/role.d.ts +69 -0
- package/dist/structures/role.js +112 -0
- package/dist/structures/user.d.ts +59 -0
- package/dist/structures/user.js +94 -0
- package/dist/structures/webhook.d.ts +46 -0
- package/dist/structures/webhook.js +79 -0
- package/dist/tasks/convention.d.ts +26 -0
- package/dist/tasks/convention.js +78 -0
- package/dist/tasks/schedule.d.ts +54 -0
- package/dist/tasks/schedule.js +236 -0
- package/dist/tasks/scheduler.d.ts +33 -0
- package/dist/tasks/scheduler.js +107 -0
- package/dist/tasks/task.d.ts +76 -0
- package/dist/tasks/task.js +28 -0
- package/dist/util/case.d.ts +13 -0
- package/dist/util/case.js +54 -0
- package/dist/util/duration.d.ts +8 -0
- package/dist/util/duration.js +29 -0
- package/dist/util/websocket.d.ts +9 -0
- package/dist/util/websocket.js +31 -0
- package/dist/voice/connection.d.ts +90 -0
- package/dist/voice/connection.js +494 -0
- package/dist/voice/dave.d.ts +109 -0
- package/dist/voice/dave.js +245 -0
- package/dist/voice/opus.d.ts +19 -0
- package/dist/voice/opus.js +273 -0
- package/dist/voice/session.d.ts +55 -0
- package/dist/voice/session.js +405 -0
- package/dist/voice/source.d.ts +22 -0
- package/dist/voice/source.js +195 -0
- package/dist/voice/transport.d.ts +43 -0
- package/dist/voice/transport.js +140 -0
- package/dist/voice/usage.d.ts +4 -0
- package/dist/voice/usage.js +33 -0
- package/package.json +26 -7
- package/vendor/dave/LICENSE +231 -0
- package/vendor/dave/libdave.d.mts +99 -0
- package/vendor/dave/libdave.mjs +2 -0
- package/vendor/dave/libdave.wasm +0 -0
- package/dist/components.d.ts +0 -97
- package/dist/components.js +0 -260
- package/dist/context.d.ts +0 -72
- package/dist/context.js +0 -273
- package/dist/discord/client.d.ts +0 -35
- package/dist/discord/client.js +0 -66
- package/dist/discord/constants.d.ts +0 -49
- package/dist/discord/constants.js +0 -61
- package/dist/discord/events.d.ts +0 -129
- package/dist/discord/events.js +0 -102
- package/dist/discord/gateway.d.ts +0 -61
- package/dist/discord/gateway.js +0 -320
- package/dist/discord/payloads.d.ts +0 -275
- package/dist/discord/payloads.js +0 -3
- package/dist/discord/presence.d.ts +0 -42
- package/dist/discord/presence.js +0 -51
- package/dist/discord/rest.d.ts +0 -49
- package/dist/discord/rest.js +0 -271
- package/dist/discord/types.d.ts +0 -334
- package/dist/discord/types.js +0 -4
- package/dist/events.d.ts +0 -94
- package/dist/events.js +0 -255
- package/dist/presence.d.ts +0 -92
- package/dist/presence.js +0 -250
- package/dist/structures/Channel.d.ts +0 -110
- package/dist/structures/Channel.js +0 -171
- package/dist/structures/Guild.d.ts +0 -70
- package/dist/structures/Guild.js +0 -105
- package/dist/structures/Interaction.d.ts +0 -113
- package/dist/structures/Interaction.js +0 -274
- package/dist/structures/Member.d.ts +0 -70
- package/dist/structures/Member.js +0 -124
- package/dist/structures/Message.d.ts +0 -87
- package/dist/structures/Message.js +0 -182
- package/dist/structures/Reaction.d.ts +0 -38
- package/dist/structures/Reaction.js +0 -64
- package/dist/structures/Role.d.ts +0 -43
- package/dist/structures/Role.js +0 -77
- package/dist/structures/User.d.ts +0 -41
- package/dist/structures/User.js +0 -79
- package/dist/structures/utils.d.ts +0 -72
- package/dist/structures/utils.js +0 -59
- package/dist/utils/errors.d.ts +0 -5
- package/dist/utils/errors.js +0 -28
- package/dist/utils/modules.d.ts +0 -39
- package/dist/utils/modules.js +0 -156
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type { ImageData, Snowflake } from './common.js';
|
|
2
|
+
import type { RawGuild } from './guild.js';
|
|
3
|
+
import type { OAuth2Scope } from './oauth2.js';
|
|
4
|
+
import type { RawTeam } from './team.js';
|
|
5
|
+
import type { RawUser } from './user.js';
|
|
6
|
+
/**
|
|
7
|
+
* Application Structure
|
|
8
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-structure
|
|
9
|
+
*/
|
|
10
|
+
export interface RawApplication {
|
|
11
|
+
/** ID of the app */
|
|
12
|
+
id: Snowflake;
|
|
13
|
+
/** Name of the app */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Icon hash of the app */
|
|
16
|
+
icon: string | null;
|
|
17
|
+
/** Description of the app */
|
|
18
|
+
description: string;
|
|
19
|
+
/** List of RPC origin URLs, if RPC is enabled */
|
|
20
|
+
rpc_origins?: string[];
|
|
21
|
+
/** When `false`, only the app owner can add the app to guilds */
|
|
22
|
+
bot_public: boolean;
|
|
23
|
+
/** When `true`, the app's bot will only join upon completion of the full OAuth2 code grant flow */
|
|
24
|
+
bot_require_code_grant: boolean;
|
|
25
|
+
/** Partial user object for the bot user associated with the app */
|
|
26
|
+
bot?: Partial<RawUser>;
|
|
27
|
+
/** URL of the app's Terms of Service */
|
|
28
|
+
terms_of_service_url?: string;
|
|
29
|
+
/** URL of the app's Privacy Policy */
|
|
30
|
+
privacy_policy_url?: string;
|
|
31
|
+
/** Partial user object for the owner of the app */
|
|
32
|
+
owner?: Partial<RawUser>;
|
|
33
|
+
/** Hex encoded key for verification in interactions and the GameSDK's GetTicket */
|
|
34
|
+
verify_key: string;
|
|
35
|
+
/** If the app belongs to a team, this will be a list of the members of that team */
|
|
36
|
+
team: RawTeam | null;
|
|
37
|
+
/** Guild associated with the app. For example, a developer support server. */
|
|
38
|
+
guild_id?: Snowflake;
|
|
39
|
+
/** Partial object of the associated guild */
|
|
40
|
+
guild?: Partial<RawGuild>;
|
|
41
|
+
/** If this app is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists */
|
|
42
|
+
primary_sku_id?: Snowflake;
|
|
43
|
+
/** If this app is a game sold on Discord, this field will be the URL slug that links to the store page */
|
|
44
|
+
slug?: string;
|
|
45
|
+
/** App's default rich presence invite cover image hash */
|
|
46
|
+
cover_image?: string;
|
|
47
|
+
/** App's legacy public flags */
|
|
48
|
+
flags?: number;
|
|
49
|
+
/** App's public flags */
|
|
50
|
+
flags_new?: string;
|
|
51
|
+
/** Approximate count of guilds the app has been added to */
|
|
52
|
+
approximate_guild_count?: number;
|
|
53
|
+
/** Approximate count of users that have installed the app (authorized with `application.commands` as a scope) */
|
|
54
|
+
approximate_user_install_count?: number;
|
|
55
|
+
/** Approximate count of users that have OAuth2 authorizations for the app */
|
|
56
|
+
approximate_user_authorization_count?: number;
|
|
57
|
+
/** Array of redirect URIs for the app */
|
|
58
|
+
redirect_uris?: string[];
|
|
59
|
+
/** Interactions endpoint URL for the app */
|
|
60
|
+
interactions_endpoint_url?: string | null;
|
|
61
|
+
/** Role connection verification URL for the app */
|
|
62
|
+
role_connections_verification_url?: string | null;
|
|
63
|
+
/** Event webhooks URL for the app to receive webhook events */
|
|
64
|
+
event_webhooks_url?: string | null;
|
|
65
|
+
/** If webhook events are enabled for the app. `1` (default) means disabled, `2` means enabled, and `3` means disabled by Discord */
|
|
66
|
+
event_webhooks_status?: ApplicationEventWebhookStatus;
|
|
67
|
+
/** List of Webhook event types the app subscribes to */
|
|
68
|
+
event_webhooks_types?: string[];
|
|
69
|
+
/** List of tags describing the content and functionality of the app. Max of 5 tags. */
|
|
70
|
+
tags?: string[];
|
|
71
|
+
/** Settings for the app's default in-app authorization link, if enabled */
|
|
72
|
+
install_params?: RawInstallParams;
|
|
73
|
+
/** Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object */
|
|
74
|
+
integration_types_config?: Partial<Record<`${ApplicationIntegrationType}`, RawApplicationIntegrationTypeConfiguration>>;
|
|
75
|
+
/** Default custom authorization URL for the app, if enabled */
|
|
76
|
+
custom_install_url?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Application Integration Types
|
|
80
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-integration-types
|
|
81
|
+
*/
|
|
82
|
+
export declare const ApplicationIntegrationType: {
|
|
83
|
+
/** App is installable to servers */
|
|
84
|
+
readonly GuildInstall: 0;
|
|
85
|
+
/** App is installable to users */
|
|
86
|
+
readonly UserInstall: 1;
|
|
87
|
+
};
|
|
88
|
+
export type ApplicationIntegrationType = (typeof ApplicationIntegrationType)[keyof typeof ApplicationIntegrationType];
|
|
89
|
+
/**
|
|
90
|
+
* Application Integration Type Configuration Object
|
|
91
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-integration-type-configuration-object
|
|
92
|
+
*/
|
|
93
|
+
export interface RawApplicationIntegrationTypeConfiguration {
|
|
94
|
+
/** Install params for each installation context's default in-app authorization link */
|
|
95
|
+
oauth2_install_params?: RawInstallParams;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Application Event Webhook Status
|
|
99
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-event-webhook-status
|
|
100
|
+
*/
|
|
101
|
+
export declare const ApplicationEventWebhookStatus: {
|
|
102
|
+
/** Webhook events are disabled by developer */
|
|
103
|
+
readonly Disabled: 1;
|
|
104
|
+
/** Webhook events are enabled by developer */
|
|
105
|
+
readonly Enabled: 2;
|
|
106
|
+
/** Webhook events are disabled by Discord, usually due to inactivity */
|
|
107
|
+
readonly DisabledByDiscord: 3;
|
|
108
|
+
};
|
|
109
|
+
export type ApplicationEventWebhookStatus = (typeof ApplicationEventWebhookStatus)[keyof typeof ApplicationEventWebhookStatus];
|
|
110
|
+
/**
|
|
111
|
+
* Application Flags
|
|
112
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-flags
|
|
113
|
+
*/
|
|
114
|
+
export declare const ApplicationFlags: {
|
|
115
|
+
/** Indicates if an app uses the Auto Moderation API */
|
|
116
|
+
readonly ApplicationAutoModerationRuleCreateBadge: number;
|
|
117
|
+
/** Intent required for bots in **100 or more servers** to receive `presence_update` events */
|
|
118
|
+
readonly GatewayPresence: number;
|
|
119
|
+
/** Intent required for bots in under 100 servers to receive `presence_update` events, found on the **Bot** page in your app's settings */
|
|
120
|
+
readonly GatewayPresenceLimited: number;
|
|
121
|
+
/** Intent required for bots in **100 or more servers** to receive member-related events like `guild_member_add`. See the list of member-related events under `GUILD_MEMBERS` */
|
|
122
|
+
readonly GatewayGuildMembers: number;
|
|
123
|
+
/** Intent required for bots in under 100 servers to receive member-related events like `guild_member_add`, found on the **Bot** page in your app's settings. See the list of member-related events under `GUILD_MEMBERS` */
|
|
124
|
+
readonly GatewayGuildMembersLimited: number;
|
|
125
|
+
/** Indicates unusual growth of an app that prevents verification */
|
|
126
|
+
readonly VerificationPendingGuildLimit: number;
|
|
127
|
+
/** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
|
|
128
|
+
readonly Embedded: number;
|
|
129
|
+
/** Intent required for bots in **100 or more servers** to receive message content */
|
|
130
|
+
readonly GatewayMessageContent: number;
|
|
131
|
+
/** Intent required for bots in under 100 servers to receive message content, found on the **Bot** page in your app's settings */
|
|
132
|
+
readonly GatewayMessageContentLimited: number;
|
|
133
|
+
/** Indicates if an app has registered global application commands */
|
|
134
|
+
readonly ApplicationCommandBadge: number;
|
|
135
|
+
};
|
|
136
|
+
export type ApplicationFlags = (typeof ApplicationFlags)[keyof typeof ApplicationFlags];
|
|
137
|
+
/**
|
|
138
|
+
* Install Params Structure
|
|
139
|
+
* @see https://docs.discord.com/developers/resources/application#install-params-object-install-params-structure
|
|
140
|
+
*/
|
|
141
|
+
export interface RawInstallParams {
|
|
142
|
+
/** Scopes to add the application to the server with */
|
|
143
|
+
scopes: OAuth2Scope[];
|
|
144
|
+
/** Permissions to request for the bot role */
|
|
145
|
+
permissions: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* JSON Params
|
|
149
|
+
* @see https://docs.discord.com/developers/resources/application#edit-current-application-json-params
|
|
150
|
+
*/
|
|
151
|
+
export interface EditCurrentApplicationJSONParams {
|
|
152
|
+
/** Default custom authorization URL for the app, if enabled */
|
|
153
|
+
custom_install_url?: string;
|
|
154
|
+
/** Description of the app */
|
|
155
|
+
description?: string;
|
|
156
|
+
/** Role connection verification URL for the app */
|
|
157
|
+
role_connections_verification_url?: string;
|
|
158
|
+
/** Settings for the app's default in-app authorization link, if enabled */
|
|
159
|
+
install_params?: RawInstallParams;
|
|
160
|
+
/** Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object */
|
|
161
|
+
integration_types_config?: Partial<Record<`${ApplicationIntegrationType}`, RawApplicationIntegrationTypeConfiguration>>;
|
|
162
|
+
/** App's public flags */
|
|
163
|
+
flags?: number;
|
|
164
|
+
/** Icon for the app */
|
|
165
|
+
icon?: ImageData | null;
|
|
166
|
+
/** Default rich presence invite cover image for the app */
|
|
167
|
+
cover_image?: ImageData | null;
|
|
168
|
+
/** Interactions endpoint URL for the app */
|
|
169
|
+
interactions_endpoint_url?: string;
|
|
170
|
+
/** List of tags describing the content and functionality of the app (max of 20 characters per tag). Max of 5 tags. */
|
|
171
|
+
tags?: string[];
|
|
172
|
+
/** Event webhooks URL for the app to receive webhook events */
|
|
173
|
+
event_webhooks_url?: string;
|
|
174
|
+
/** If webhook events are enabled for the app. `1` to disable, and `2` to enable */
|
|
175
|
+
event_webhooks_status?: ApplicationEventWebhookStatus;
|
|
176
|
+
/** List of Webhook event types to subscribe to */
|
|
177
|
+
event_webhooks_types?: string[];
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Activity Instance Object
|
|
181
|
+
* @see https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-instance-object
|
|
182
|
+
*/
|
|
183
|
+
export interface RawActivityInstance {
|
|
184
|
+
/** Application ID */
|
|
185
|
+
application_id: Snowflake;
|
|
186
|
+
/** Activity Instance ID */
|
|
187
|
+
instance_id: string;
|
|
188
|
+
/** Unique identifier for the launch */
|
|
189
|
+
launch_id: Snowflake;
|
|
190
|
+
/** Location the instance is running in */
|
|
191
|
+
location: RawActivityLocation;
|
|
192
|
+
/** IDs of the Users currently connected to the instance */
|
|
193
|
+
users: Snowflake[];
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Activity Location Object
|
|
197
|
+
* @see https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-location-object
|
|
198
|
+
*/
|
|
199
|
+
export interface RawActivityLocation {
|
|
200
|
+
/** Unique identifier for the location */
|
|
201
|
+
id: string;
|
|
202
|
+
/** Enum describing kind of location */
|
|
203
|
+
kind: 'gc' | 'pc';
|
|
204
|
+
/** ID of the Channel */
|
|
205
|
+
channel_id: Snowflake;
|
|
206
|
+
/** ID of the Guild */
|
|
207
|
+
guild_id?: Snowflake | null;
|
|
208
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application Integration Types
|
|
3
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-integration-types
|
|
4
|
+
*/
|
|
5
|
+
export const ApplicationIntegrationType = {
|
|
6
|
+
/** App is installable to servers */
|
|
7
|
+
GuildInstall: 0,
|
|
8
|
+
/** App is installable to users */
|
|
9
|
+
UserInstall: 1,
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Application Event Webhook Status
|
|
13
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-event-webhook-status
|
|
14
|
+
*/
|
|
15
|
+
export const ApplicationEventWebhookStatus = {
|
|
16
|
+
/** Webhook events are disabled by developer */
|
|
17
|
+
Disabled: 1,
|
|
18
|
+
/** Webhook events are enabled by developer */
|
|
19
|
+
Enabled: 2,
|
|
20
|
+
/** Webhook events are disabled by Discord, usually due to inactivity */
|
|
21
|
+
DisabledByDiscord: 3,
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Application Flags
|
|
25
|
+
* @see https://docs.discord.com/developers/resources/application#application-object-application-flags
|
|
26
|
+
*/
|
|
27
|
+
export const ApplicationFlags = {
|
|
28
|
+
/** Indicates if an app uses the Auto Moderation API */
|
|
29
|
+
ApplicationAutoModerationRuleCreateBadge: 1 << 6,
|
|
30
|
+
/** Intent required for bots in **100 or more servers** to receive `presence_update` events */
|
|
31
|
+
GatewayPresence: 1 << 12,
|
|
32
|
+
/** Intent required for bots in under 100 servers to receive `presence_update` events, found on the **Bot** page in your app's settings */
|
|
33
|
+
GatewayPresenceLimited: 1 << 13,
|
|
34
|
+
/** Intent required for bots in **100 or more servers** to receive member-related events like `guild_member_add`. See the list of member-related events under `GUILD_MEMBERS` */
|
|
35
|
+
GatewayGuildMembers: 1 << 14,
|
|
36
|
+
/** Intent required for bots in under 100 servers to receive member-related events like `guild_member_add`, found on the **Bot** page in your app's settings. See the list of member-related events under `GUILD_MEMBERS` */
|
|
37
|
+
GatewayGuildMembersLimited: 1 << 15,
|
|
38
|
+
/** Indicates unusual growth of an app that prevents verification */
|
|
39
|
+
VerificationPendingGuildLimit: 1 << 16,
|
|
40
|
+
/** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
|
|
41
|
+
Embedded: 1 << 17,
|
|
42
|
+
/** Intent required for bots in **100 or more servers** to receive message content */
|
|
43
|
+
GatewayMessageContent: 1 << 18,
|
|
44
|
+
/** Intent required for bots in under 100 servers to receive message content, found on the **Bot** page in your app's settings */
|
|
45
|
+
GatewayMessageContentLimited: 1 << 19,
|
|
46
|
+
/** Indicates if an app has registered global application commands */
|
|
47
|
+
ApplicationCommandBadge: 1 << 23,
|
|
48
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import type { RawApplicationCommand } from './application-command.js';
|
|
2
|
+
import type { RawAutoModerationRule } from './auto-moderation.js';
|
|
3
|
+
import type { RawChannel } from './channel.js';
|
|
4
|
+
import type { Snowflake } from './common.js';
|
|
5
|
+
import type { RawIntegration } from './guild.js';
|
|
6
|
+
import type { RawGuildScheduledEvent } from './guild-scheduled-event.js';
|
|
7
|
+
import type { RawUser } from './user.js';
|
|
8
|
+
import type { RawWebhook } from './webhook.js';
|
|
9
|
+
/**
|
|
10
|
+
* Audit Log Structure
|
|
11
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-object-audit-log-structure
|
|
12
|
+
*/
|
|
13
|
+
export interface RawAuditLog {
|
|
14
|
+
/** List of application commands referenced in the audit log */
|
|
15
|
+
application_commands: RawApplicationCommand[];
|
|
16
|
+
/** List of audit log entries, sorted from most to least recent */
|
|
17
|
+
audit_log_entries: RawAuditLogEntry[];
|
|
18
|
+
/** List of auto moderation rules referenced in the audit log */
|
|
19
|
+
auto_moderation_rules: RawAutoModerationRule[];
|
|
20
|
+
/** List of guild scheduled events referenced in the audit log */
|
|
21
|
+
guild_scheduled_events: RawGuildScheduledEvent[];
|
|
22
|
+
/** List of partial integration objects */
|
|
23
|
+
integrations: Partial<RawIntegration>[];
|
|
24
|
+
/** List of threads referenced in the audit log* */
|
|
25
|
+
threads: RawChannel[];
|
|
26
|
+
/** List of users referenced in the audit log */
|
|
27
|
+
users: RawUser[];
|
|
28
|
+
/** List of webhooks referenced in the audit log */
|
|
29
|
+
webhooks: RawWebhook[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Audit Log Entry Structure
|
|
33
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-entry-structure
|
|
34
|
+
*/
|
|
35
|
+
export interface RawAuditLogEntry {
|
|
36
|
+
/** ID of the affected entity (webhook, user, role, etc.) */
|
|
37
|
+
target_id: string | null;
|
|
38
|
+
/** Changes made to the target_id */
|
|
39
|
+
changes?: RawAuditLogChange[];
|
|
40
|
+
/** User or app that made the changes */
|
|
41
|
+
user_id: Snowflake | null;
|
|
42
|
+
/** ID of the entry */
|
|
43
|
+
id: Snowflake;
|
|
44
|
+
/** Type of action that occurred */
|
|
45
|
+
action_type: AuditLogEvent;
|
|
46
|
+
/** Additional info for certain event types */
|
|
47
|
+
options?: RawOptionalAuditEntryInfo;
|
|
48
|
+
/** Reason for the change (1-512 characters) */
|
|
49
|
+
reason?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Audit Log Events
|
|
53
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-events
|
|
54
|
+
*/
|
|
55
|
+
export declare const AuditLogEvent: {
|
|
56
|
+
/** Server settings were updated */
|
|
57
|
+
readonly GuildUpdate: 1;
|
|
58
|
+
/** Channel was created */
|
|
59
|
+
readonly ChannelCreate: 10;
|
|
60
|
+
/** Channel settings were updated */
|
|
61
|
+
readonly ChannelUpdate: 11;
|
|
62
|
+
/** Channel was deleted */
|
|
63
|
+
readonly ChannelDelete: 12;
|
|
64
|
+
/** Permission overwrite was added to a channel */
|
|
65
|
+
readonly ChannelOverwriteCreate: 13;
|
|
66
|
+
/** Permission overwrite was updated for a channel */
|
|
67
|
+
readonly ChannelOverwriteUpdate: 14;
|
|
68
|
+
/** Permission overwrite was deleted from a channel */
|
|
69
|
+
readonly ChannelOverwriteDelete: 15;
|
|
70
|
+
/** Member was removed from server */
|
|
71
|
+
readonly MemberKick: 20;
|
|
72
|
+
/** Members were pruned from server */
|
|
73
|
+
readonly MemberPrune: 21;
|
|
74
|
+
/** Member was banned from server */
|
|
75
|
+
readonly MemberBanAdd: 22;
|
|
76
|
+
/** Server ban was lifted for a member */
|
|
77
|
+
readonly MemberBanRemove: 23;
|
|
78
|
+
/** Member was updated in server */
|
|
79
|
+
readonly MemberUpdate: 24;
|
|
80
|
+
/** Member was added or removed from a role */
|
|
81
|
+
readonly MemberRoleUpdate: 25;
|
|
82
|
+
/** Member was moved to a different voice channel */
|
|
83
|
+
readonly MemberMove: 26;
|
|
84
|
+
/** Member was disconnected from a voice channel */
|
|
85
|
+
readonly MemberDisconnect: 27;
|
|
86
|
+
/** Bot user was added to server */
|
|
87
|
+
readonly BotAdd: 28;
|
|
88
|
+
/** Role was created */
|
|
89
|
+
readonly RoleCreate: 30;
|
|
90
|
+
/** Role was edited */
|
|
91
|
+
readonly RoleUpdate: 31;
|
|
92
|
+
/** Role was deleted */
|
|
93
|
+
readonly RoleDelete: 32;
|
|
94
|
+
/** Server invite was created */
|
|
95
|
+
readonly InviteCreate: 40;
|
|
96
|
+
/** Server invite was updated */
|
|
97
|
+
readonly InviteUpdate: 41;
|
|
98
|
+
/** Server invite was deleted */
|
|
99
|
+
readonly InviteDelete: 42;
|
|
100
|
+
/** Webhook was created */
|
|
101
|
+
readonly WebhookCreate: 50;
|
|
102
|
+
/** Webhook properties or channel were updated */
|
|
103
|
+
readonly WebhookUpdate: 51;
|
|
104
|
+
/** Webhook was deleted */
|
|
105
|
+
readonly WebhookDelete: 52;
|
|
106
|
+
/** Emoji was created */
|
|
107
|
+
readonly EmojiCreate: 60;
|
|
108
|
+
/** Emoji name was updated */
|
|
109
|
+
readonly EmojiUpdate: 61;
|
|
110
|
+
/** Emoji was deleted */
|
|
111
|
+
readonly EmojiDelete: 62;
|
|
112
|
+
/** Single message was deleted */
|
|
113
|
+
readonly MessageDelete: 72;
|
|
114
|
+
/** Multiple messages were deleted */
|
|
115
|
+
readonly MessageBulkDelete: 73;
|
|
116
|
+
/** Message was pinned to a channel */
|
|
117
|
+
readonly MessagePin: 74;
|
|
118
|
+
/** Message was unpinned from a channel */
|
|
119
|
+
readonly MessageUnpin: 75;
|
|
120
|
+
/** App was added to server */
|
|
121
|
+
readonly IntegrationCreate: 80;
|
|
122
|
+
/** App was updated (as an example, its scopes were updated) */
|
|
123
|
+
readonly IntegrationUpdate: 81;
|
|
124
|
+
/** App was removed from server */
|
|
125
|
+
readonly IntegrationDelete: 82;
|
|
126
|
+
/** Stage instance was created (stage channel becomes live) */
|
|
127
|
+
readonly StageInstanceCreate: 83;
|
|
128
|
+
/** Stage instance details were updated */
|
|
129
|
+
readonly StageInstanceUpdate: 84;
|
|
130
|
+
/** Stage instance was deleted (stage channel no longer live) */
|
|
131
|
+
readonly StageInstanceDelete: 85;
|
|
132
|
+
/** Sticker was created */
|
|
133
|
+
readonly StickerCreate: 90;
|
|
134
|
+
/** Sticker details were updated */
|
|
135
|
+
readonly StickerUpdate: 91;
|
|
136
|
+
/** Sticker was deleted */
|
|
137
|
+
readonly StickerDelete: 92;
|
|
138
|
+
/** Event was created */
|
|
139
|
+
readonly GuildScheduledEventCreate: 100;
|
|
140
|
+
/** Event was updated */
|
|
141
|
+
readonly GuildScheduledEventUpdate: 101;
|
|
142
|
+
/** Event was cancelled */
|
|
143
|
+
readonly GuildScheduledEventDelete: 102;
|
|
144
|
+
/** Thread was created in a channel */
|
|
145
|
+
readonly ThreadCreate: 110;
|
|
146
|
+
/** Thread was updated */
|
|
147
|
+
readonly ThreadUpdate: 111;
|
|
148
|
+
/** Thread was deleted */
|
|
149
|
+
readonly ThreadDelete: 112;
|
|
150
|
+
/** Permissions were updated for a command */
|
|
151
|
+
readonly ApplicationCommandPermissionUpdate: 121;
|
|
152
|
+
/** Soundboard sound was created */
|
|
153
|
+
readonly SoundboardSoundCreate: 130;
|
|
154
|
+
/** Soundboard sound was updated */
|
|
155
|
+
readonly SoundboardSoundUpdate: 131;
|
|
156
|
+
/** Soundboard sound was deleted */
|
|
157
|
+
readonly SoundboardSoundDelete: 132;
|
|
158
|
+
/** Auto Moderation rule was created */
|
|
159
|
+
readonly AutoModerationRuleCreate: 140;
|
|
160
|
+
/** Auto Moderation rule was updated */
|
|
161
|
+
readonly AutoModerationRuleUpdate: 141;
|
|
162
|
+
/** Auto Moderation rule was deleted */
|
|
163
|
+
readonly AutoModerationRuleDelete: 142;
|
|
164
|
+
/** Message was blocked by Auto Moderation */
|
|
165
|
+
readonly AutoModerationBlockMessage: 143;
|
|
166
|
+
/** Message was flagged by Auto Moderation */
|
|
167
|
+
readonly AutoModerationFlagToChannel: 144;
|
|
168
|
+
/** Member was timed out by Auto Moderation */
|
|
169
|
+
readonly AutoModerationUserCommunicationDisabled: 145;
|
|
170
|
+
/** Member was quarantined by Auto Moderation */
|
|
171
|
+
readonly AutoModerationQuarantineUser: 146;
|
|
172
|
+
/** Creator monetization request was created */
|
|
173
|
+
readonly CreatorMonetizationRequestCreated: 150;
|
|
174
|
+
/** Creator monetization terms were accepted */
|
|
175
|
+
readonly CreatorMonetizationTermsAccepted: 151;
|
|
176
|
+
/** Guild Onboarding Question was created */
|
|
177
|
+
readonly OnboardingPromptCreate: 163;
|
|
178
|
+
/** Guild Onboarding Question was updated */
|
|
179
|
+
readonly OnboardingPromptUpdate: 164;
|
|
180
|
+
/** Guild Onboarding Question was deleted */
|
|
181
|
+
readonly OnboardingPromptDelete: 165;
|
|
182
|
+
/** Guild Onboarding was created */
|
|
183
|
+
readonly OnboardingCreate: 166;
|
|
184
|
+
/** Guild Onboarding was updated */
|
|
185
|
+
readonly OnboardingUpdate: 167;
|
|
186
|
+
/** Guild Server Guide was created */
|
|
187
|
+
readonly HomeSettingsCreate: 190;
|
|
188
|
+
/** Guild Server Guide was updated */
|
|
189
|
+
readonly HomeSettingsUpdate: 191;
|
|
190
|
+
/** A voice channel status was set by a user */
|
|
191
|
+
readonly VoiceChannelStatusCreate: 192;
|
|
192
|
+
/** A voice channel status was deleted by a user */
|
|
193
|
+
readonly VoiceChannelStatusDelete: 193;
|
|
194
|
+
};
|
|
195
|
+
export type AuditLogEvent = (typeof AuditLogEvent)[keyof typeof AuditLogEvent];
|
|
196
|
+
/**
|
|
197
|
+
* Optional Audit Entry Info
|
|
198
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-optional-audit-entry-info
|
|
199
|
+
*/
|
|
200
|
+
export interface RawOptionalAuditEntryInfo {
|
|
201
|
+
/** ID of the app whose permissions were targeted */
|
|
202
|
+
application_id?: Snowflake;
|
|
203
|
+
/** Name of the Auto Moderation rule that was triggered */
|
|
204
|
+
auto_moderation_rule_name?: string;
|
|
205
|
+
/** Trigger type of the Auto Moderation rule that was triggered */
|
|
206
|
+
auto_moderation_rule_trigger_type?: string;
|
|
207
|
+
/** Channel in which the entities were targeted */
|
|
208
|
+
channel_id?: Snowflake;
|
|
209
|
+
/** Number of entities that were targeted */
|
|
210
|
+
count?: string;
|
|
211
|
+
/** Number of days after which inactive members were kicked */
|
|
212
|
+
delete_member_days?: string;
|
|
213
|
+
/** ID of the overwritten entity */
|
|
214
|
+
id?: Snowflake;
|
|
215
|
+
/** Number of members removed by the prune */
|
|
216
|
+
members_removed?: string;
|
|
217
|
+
/** ID of the message that was targeted */
|
|
218
|
+
message_id?: Snowflake;
|
|
219
|
+
/** Name of the role if type is `"0"` (not present if type is `"1"`) */
|
|
220
|
+
role_name?: string;
|
|
221
|
+
/** Type of overwritten entity - role (`"0"`) or member (`"1"`) */
|
|
222
|
+
type?: string;
|
|
223
|
+
/** The type of integration which performed the action */
|
|
224
|
+
integration_type?: string;
|
|
225
|
+
/** The new voice channel status */
|
|
226
|
+
status?: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Audit Log Change Structure
|
|
230
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-change-object-audit-log-change-structure
|
|
231
|
+
*/
|
|
232
|
+
export interface RawAuditLogChange {
|
|
233
|
+
/** New value of the key */
|
|
234
|
+
new_value?: unknown;
|
|
235
|
+
/** Old value of the key */
|
|
236
|
+
old_value?: unknown;
|
|
237
|
+
/** Name of the changed entity, with a few exceptions */
|
|
238
|
+
key: string;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Query String Params
|
|
242
|
+
* @see https://docs.discord.com/developers/resources/audit-log#get-guild-audit-log-query-string-params
|
|
243
|
+
*/
|
|
244
|
+
export interface GetGuildAuditLogQuery {
|
|
245
|
+
/** Entries from a specific user ID */
|
|
246
|
+
user_id?: Snowflake;
|
|
247
|
+
/** Entries for a specific audit log event */
|
|
248
|
+
action_type?: AuditLogEvent;
|
|
249
|
+
/** Entries with ID less than a specific audit log entry ID */
|
|
250
|
+
before?: Snowflake;
|
|
251
|
+
/** Entries with ID greater than a specific audit log entry ID */
|
|
252
|
+
after?: Snowflake;
|
|
253
|
+
/** Maximum number of entries (between 1-100) to return, defaults to 50 */
|
|
254
|
+
limit?: number;
|
|
255
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit Log Events
|
|
3
|
+
* @see https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-events
|
|
4
|
+
*/
|
|
5
|
+
export const AuditLogEvent = {
|
|
6
|
+
/** Server settings were updated */
|
|
7
|
+
GuildUpdate: 1,
|
|
8
|
+
/** Channel was created */
|
|
9
|
+
ChannelCreate: 10,
|
|
10
|
+
/** Channel settings were updated */
|
|
11
|
+
ChannelUpdate: 11,
|
|
12
|
+
/** Channel was deleted */
|
|
13
|
+
ChannelDelete: 12,
|
|
14
|
+
/** Permission overwrite was added to a channel */
|
|
15
|
+
ChannelOverwriteCreate: 13,
|
|
16
|
+
/** Permission overwrite was updated for a channel */
|
|
17
|
+
ChannelOverwriteUpdate: 14,
|
|
18
|
+
/** Permission overwrite was deleted from a channel */
|
|
19
|
+
ChannelOverwriteDelete: 15,
|
|
20
|
+
/** Member was removed from server */
|
|
21
|
+
MemberKick: 20,
|
|
22
|
+
/** Members were pruned from server */
|
|
23
|
+
MemberPrune: 21,
|
|
24
|
+
/** Member was banned from server */
|
|
25
|
+
MemberBanAdd: 22,
|
|
26
|
+
/** Server ban was lifted for a member */
|
|
27
|
+
MemberBanRemove: 23,
|
|
28
|
+
/** Member was updated in server */
|
|
29
|
+
MemberUpdate: 24,
|
|
30
|
+
/** Member was added or removed from a role */
|
|
31
|
+
MemberRoleUpdate: 25,
|
|
32
|
+
/** Member was moved to a different voice channel */
|
|
33
|
+
MemberMove: 26,
|
|
34
|
+
/** Member was disconnected from a voice channel */
|
|
35
|
+
MemberDisconnect: 27,
|
|
36
|
+
/** Bot user was added to server */
|
|
37
|
+
BotAdd: 28,
|
|
38
|
+
/** Role was created */
|
|
39
|
+
RoleCreate: 30,
|
|
40
|
+
/** Role was edited */
|
|
41
|
+
RoleUpdate: 31,
|
|
42
|
+
/** Role was deleted */
|
|
43
|
+
RoleDelete: 32,
|
|
44
|
+
/** Server invite was created */
|
|
45
|
+
InviteCreate: 40,
|
|
46
|
+
/** Server invite was updated */
|
|
47
|
+
InviteUpdate: 41,
|
|
48
|
+
/** Server invite was deleted */
|
|
49
|
+
InviteDelete: 42,
|
|
50
|
+
/** Webhook was created */
|
|
51
|
+
WebhookCreate: 50,
|
|
52
|
+
/** Webhook properties or channel were updated */
|
|
53
|
+
WebhookUpdate: 51,
|
|
54
|
+
/** Webhook was deleted */
|
|
55
|
+
WebhookDelete: 52,
|
|
56
|
+
/** Emoji was created */
|
|
57
|
+
EmojiCreate: 60,
|
|
58
|
+
/** Emoji name was updated */
|
|
59
|
+
EmojiUpdate: 61,
|
|
60
|
+
/** Emoji was deleted */
|
|
61
|
+
EmojiDelete: 62,
|
|
62
|
+
/** Single message was deleted */
|
|
63
|
+
MessageDelete: 72,
|
|
64
|
+
/** Multiple messages were deleted */
|
|
65
|
+
MessageBulkDelete: 73,
|
|
66
|
+
/** Message was pinned to a channel */
|
|
67
|
+
MessagePin: 74,
|
|
68
|
+
/** Message was unpinned from a channel */
|
|
69
|
+
MessageUnpin: 75,
|
|
70
|
+
/** App was added to server */
|
|
71
|
+
IntegrationCreate: 80,
|
|
72
|
+
/** App was updated (as an example, its scopes were updated) */
|
|
73
|
+
IntegrationUpdate: 81,
|
|
74
|
+
/** App was removed from server */
|
|
75
|
+
IntegrationDelete: 82,
|
|
76
|
+
/** Stage instance was created (stage channel becomes live) */
|
|
77
|
+
StageInstanceCreate: 83,
|
|
78
|
+
/** Stage instance details were updated */
|
|
79
|
+
StageInstanceUpdate: 84,
|
|
80
|
+
/** Stage instance was deleted (stage channel no longer live) */
|
|
81
|
+
StageInstanceDelete: 85,
|
|
82
|
+
/** Sticker was created */
|
|
83
|
+
StickerCreate: 90,
|
|
84
|
+
/** Sticker details were updated */
|
|
85
|
+
StickerUpdate: 91,
|
|
86
|
+
/** Sticker was deleted */
|
|
87
|
+
StickerDelete: 92,
|
|
88
|
+
/** Event was created */
|
|
89
|
+
GuildScheduledEventCreate: 100,
|
|
90
|
+
/** Event was updated */
|
|
91
|
+
GuildScheduledEventUpdate: 101,
|
|
92
|
+
/** Event was cancelled */
|
|
93
|
+
GuildScheduledEventDelete: 102,
|
|
94
|
+
/** Thread was created in a channel */
|
|
95
|
+
ThreadCreate: 110,
|
|
96
|
+
/** Thread was updated */
|
|
97
|
+
ThreadUpdate: 111,
|
|
98
|
+
/** Thread was deleted */
|
|
99
|
+
ThreadDelete: 112,
|
|
100
|
+
/** Permissions were updated for a command */
|
|
101
|
+
ApplicationCommandPermissionUpdate: 121,
|
|
102
|
+
/** Soundboard sound was created */
|
|
103
|
+
SoundboardSoundCreate: 130,
|
|
104
|
+
/** Soundboard sound was updated */
|
|
105
|
+
SoundboardSoundUpdate: 131,
|
|
106
|
+
/** Soundboard sound was deleted */
|
|
107
|
+
SoundboardSoundDelete: 132,
|
|
108
|
+
/** Auto Moderation rule was created */
|
|
109
|
+
AutoModerationRuleCreate: 140,
|
|
110
|
+
/** Auto Moderation rule was updated */
|
|
111
|
+
AutoModerationRuleUpdate: 141,
|
|
112
|
+
/** Auto Moderation rule was deleted */
|
|
113
|
+
AutoModerationRuleDelete: 142,
|
|
114
|
+
/** Message was blocked by Auto Moderation */
|
|
115
|
+
AutoModerationBlockMessage: 143,
|
|
116
|
+
/** Message was flagged by Auto Moderation */
|
|
117
|
+
AutoModerationFlagToChannel: 144,
|
|
118
|
+
/** Member was timed out by Auto Moderation */
|
|
119
|
+
AutoModerationUserCommunicationDisabled: 145,
|
|
120
|
+
/** Member was quarantined by Auto Moderation */
|
|
121
|
+
AutoModerationQuarantineUser: 146,
|
|
122
|
+
/** Creator monetization request was created */
|
|
123
|
+
CreatorMonetizationRequestCreated: 150,
|
|
124
|
+
/** Creator monetization terms were accepted */
|
|
125
|
+
CreatorMonetizationTermsAccepted: 151,
|
|
126
|
+
/** Guild Onboarding Question was created */
|
|
127
|
+
OnboardingPromptCreate: 163,
|
|
128
|
+
/** Guild Onboarding Question was updated */
|
|
129
|
+
OnboardingPromptUpdate: 164,
|
|
130
|
+
/** Guild Onboarding Question was deleted */
|
|
131
|
+
OnboardingPromptDelete: 165,
|
|
132
|
+
/** Guild Onboarding was created */
|
|
133
|
+
OnboardingCreate: 166,
|
|
134
|
+
/** Guild Onboarding was updated */
|
|
135
|
+
OnboardingUpdate: 167,
|
|
136
|
+
/** Guild Server Guide was created */
|
|
137
|
+
HomeSettingsCreate: 190,
|
|
138
|
+
/** Guild Server Guide was updated */
|
|
139
|
+
HomeSettingsUpdate: 191,
|
|
140
|
+
/** A voice channel status was set by a user */
|
|
141
|
+
VoiceChannelStatusCreate: 192,
|
|
142
|
+
/** A voice channel status was deleted by a user */
|
|
143
|
+
VoiceChannelStatusDelete: 193,
|
|
144
|
+
};
|