lunibee 0.2.1 → 0.2.2

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.
@@ -1,14 +1,17 @@
1
1
  import { User, type ResourceContext } from "./base.js";
2
2
  import { GuildMember } from "./resources.js";
3
+ import { Message } from "./index.js";
3
4
  /** Discord interaction type constants. */
4
- export declare const InteractionType: {
5
+ export declare const InteractionEnum: {
5
6
  readonly Ping: 1;
6
7
  readonly ApplicationCommand: 2;
7
8
  readonly MessageComponent: 3;
8
9
  readonly ApplicationCommandAutocomplete: 4;
9
10
  readonly ModalSubmit: 5;
10
11
  };
11
- export { InteractionResponseType } from "@lunibee/types";
12
+ /** One {@link InteractionEnum} value, usable as a type. */
13
+ export type InteractionEnum = (typeof InteractionEnum)[keyof typeof InteractionEnum];
14
+ export { InteractionResponseEnum, InteractionResponseType, } from "@lunibee/types";
12
15
  /** Data shared by Discord interactions. */
13
16
  export interface InteractionData {
14
17
  /** Interaction identifier. */ id: string;
@@ -28,6 +31,7 @@ export interface InteractionReplyOptions {
28
31
  /** Message components. */ components?: unknown[];
29
32
  /** Message embeds. */ embeds?: unknown[];
30
33
  /** Discord message flags. */ flags?: number;
34
+ /** On `reply()` / `update()`: return the created message (one request, no `fetchReply()`). */ withResponse?: boolean;
31
35
  [key: string]: unknown;
32
36
  }
33
37
  /** Transport required by an interaction structure. */
@@ -47,6 +51,8 @@ import { CommandOptions } from "./options.js";
47
51
  export declare class InteractionResponse {
48
52
  readonly type: number;
49
53
  readonly data?: InteractionReplyOptions;
54
+ /** Ask Discord to return the created message (`?with_response=true`); not part of the body. */
55
+ withResponse: boolean;
50
56
  /** Creates a response payload. @param type Discord callback type. @param data Optional callback data. @throws {TypeError} If type is not finite. */
51
57
  constructor(type: number, data?: InteractionReplyOptions);
52
58
  /** Serializes the response for Discord. @returns Discord callback payload. */ toJSON(): {
@@ -70,7 +76,21 @@ export declare class Interaction<TData extends InteractionData = InteractionData
70
76
  /** Whether the initial response was sent. */ replied: boolean;
71
77
  /** Whether the initial response was deferred. */ deferred: boolean;
72
78
  /** Creates an interaction from a Gateway payload. @param client Interaction transport. @param data Gateway interaction payload. @throws {TypeError} If required identifiers are missing. */ constructor(client: InteractionClient, data: TData);
73
- /** Whether this interaction is an application command. @returns True for application command interactions. */ isChatInputCommand(): this is CommandInteraction;
79
+ /** Whether this interaction is any application command: slash or context menu. */
80
+ isCommand(): this is CommandInteraction;
81
+ /**
82
+ * Whether this interaction is a slash (chat input) command. Since 0.2.2 this
83
+ * is false for context-menu commands; use {@link isCommand} for both.
84
+ */
85
+ isChatInputCommand(): this is CommandInteraction;
86
+ /** Whether this interaction is a user or message context-menu command. */
87
+ isContextMenuCommand(): this is ContextMenuCommandInteraction;
88
+ /** Whether this interaction is a user context-menu command (right-click a user). */
89
+ isUserContextMenuCommand(): this is ContextMenuCommandInteraction;
90
+ /** Whether this interaction is a message context-menu command (right-click a message). */
91
+ isMessageContextMenuCommand(): this is ContextMenuCommandInteraction;
92
+ /** The client context structures built from this interaction act through. */
93
+ protected get resourceContext(): ResourceContext | undefined;
74
94
  /**
75
95
  * Waits for this user to submit a modal, typically one this interaction
76
96
  * just opened with {@link showModal}.
@@ -119,14 +139,44 @@ export declare class Interaction<TData extends InteractionData = InteractionData
119
139
  /** Ensures the interaction has been acknowledged. @returns Nothing. @throws {Error} When not acknowledged. */ protected assertAcknowledged(): void;
120
140
  /** Posts a raw interaction response callback. */
121
141
  protected postResponse(response: InteractionResponse): Promise<unknown>;
122
- /** Sends the initial interaction response. @param options Response message options. @returns Discord response. @throws {Error} When already acknowledged or REST fails. */ reply(options: InteractionReplyOptions | string): Promise<unknown>;
123
- /** Defers the initial interaction response. @param options `true` or `{ ephemeral: true }` makes the eventual response private. @returns Promise fulfilled after acknowledgement. @throws {Error} When already acknowledged or REST fails. */ deferReply(options?: boolean | {
142
+ /**
143
+ * Sends a response and, when `withResponse` is set, turns the callback
144
+ * resource Discord returns into the created message.
145
+ */
146
+ protected acknowledgeWith(response: InteractionResponse, state: "replied" | "deferred", withResponse: boolean): Promise<unknown>;
147
+ /**
148
+ * Sends the initial interaction response. With `withResponse: true` it
149
+ * returns the created {@link Message} in the same request (no `fetchReply()`).
150
+ * @throws {Error} When already acknowledged or REST fails.
151
+ */
152
+ reply(options: InteractionReplyOptions & {
153
+ withResponse: true;
154
+ }): Promise<Message | null>;
155
+ reply(options: InteractionReplyOptions | string): Promise<unknown>;
156
+ /**
157
+ * Defers the initial interaction response. `true` or `{ ephemeral: true }`
158
+ * makes the eventual response private; `withResponse: true` returns the
159
+ * placeholder message. @throws {Error} When already acknowledged or REST fails.
160
+ */
161
+ deferReply(options: {
124
162
  ephemeral?: boolean;
163
+ withResponse: true;
164
+ }): Promise<Message | null>;
165
+ deferReply(options?: boolean | {
166
+ ephemeral?: boolean;
167
+ withResponse?: boolean;
125
168
  }): Promise<void>;
126
169
  /** Edits the original response. @param options Replacement message options. @returns Discord response. @throws {Error} When not acknowledged or REST fails. */ editReply(options: InteractionReplyOptions): Promise<unknown>;
127
170
  /** Deletes the original response. @returns Promise fulfilled after deletion. @throws {Error} When not acknowledged or REST fails. */ deleteReply(): Promise<void>;
128
171
  /** Sends a follow-up message using the interaction webhook. @param options Follow-up message options. @returns Discord response. @throws {Error} When REST fails. */ followUp(options: InteractionReplyOptions | string): Promise<unknown>;
129
- /** Updates the message for a component interaction. */ update(options: InteractionReplyOptions | string): Promise<unknown>;
172
+ /**
173
+ * Updates the message a component is on. With `withResponse: true` it
174
+ * returns the updated {@link Message}.
175
+ */
176
+ update(options: InteractionReplyOptions & {
177
+ withResponse: true;
178
+ }): Promise<Message | null>;
179
+ update(options: InteractionReplyOptions | string): Promise<unknown>;
130
180
  /** Opens a modal dialog in the user's client. @param modal Modal builder output or raw modal callback data. @returns Discord response. @throws {Error} When already acknowledged or REST fails. */
131
181
  showModal(modal: {
132
182
  toJSON(): {
@@ -137,8 +187,7 @@ export declare class Interaction<TData extends InteractionData = InteractionData
137
187
  } | {
138
188
  custom_id: string;
139
189
  title: string;
140
- components: unknown[];
141
- [key: string]: unknown;
190
+ components: readonly unknown[];
142
191
  }): Promise<unknown>;
143
192
  }
144
193
  /** Application command interaction with fully typed option resolver. */
@@ -148,6 +197,18 @@ export declare class CommandInteraction extends Interaction {
148
197
  /** Invoked command name. @returns Command name or an empty string. */ get commandName(): string;
149
198
  constructor(client: InteractionClient, data: InteractionData);
150
199
  }
200
+ /** A user or message context-menu command, with what was right-clicked. */
201
+ export declare class ContextMenuCommandInteraction extends CommandInteraction {
202
+ #private;
203
+ /** ID of the user or message the command was used on. */
204
+ get targetId(): string | null;
205
+ /** The user a user command was used on. */
206
+ get targetUser(): User | null;
207
+ /** The member a user command was used on (in a guild), with member actions when attached to a client. */
208
+ get targetMember(): GuildMember | null;
209
+ /** The message a message command was used on. */
210
+ get targetMessage(): Message | null;
211
+ }
151
212
  /** Message component interaction. */
152
213
  export declare class ComponentInteraction extends Interaction {
153
214
  /** Gets component custom ID. */
@@ -159,9 +220,12 @@ export declare class ComponentInteraction extends Interaction {
159
220
  /** Gets selected values for select menu component interactions. */
160
221
  get values(): string[];
161
222
  /** Defers updating the message to which the component was attached. */
162
- deferUpdate(): Promise<void>;
163
- /** Updates the message to which the component was attached. */
164
- update(options: InteractionReplyOptions | string): Promise<unknown>;
223
+ deferUpdate(options: {
224
+ withResponse: true;
225
+ }): Promise<Message | null>;
226
+ deferUpdate(options?: {
227
+ withResponse?: boolean;
228
+ }): Promise<void>;
165
229
  }
166
230
  /** Represents a Discord modal submission interaction. */
167
231
  export declare class ModalSubmitInteraction extends Interaction {
@@ -199,3 +263,13 @@ export declare class AutocompleteInteraction extends Interaction {
199
263
  * @throws {TypeError} If required identifiers are missing.
200
264
  */
201
265
  export declare function createInteraction(client: InteractionClient, data: InteractionData): Interaction;
266
+ /** @deprecated Use {@link InteractionEnum}. Removed in 2.0. */
267
+ export declare const InteractionType: {
268
+ readonly Ping: 1;
269
+ readonly ApplicationCommand: 2;
270
+ readonly MessageComponent: 3;
271
+ readonly ApplicationCommandAutocomplete: 4;
272
+ readonly ModalSubmit: 5;
273
+ };
274
+ /** @deprecated Use {@link InteractionEnum}. Removed in 2.0. */
275
+ export type InteractionType = InteractionEnum;
@@ -166,11 +166,13 @@ export declare class Invite {
166
166
  toString(): string;
167
167
  }
168
168
  /** Webhook type constants. */
169
- export declare const WebhookType: {
169
+ export declare const WebhookEnum: {
170
170
  readonly Incoming: 1;
171
171
  readonly ChannelFollower: 2;
172
172
  readonly Application: 3;
173
173
  };
174
+ /** One {@link WebhookEnum} value, usable as a type. */
175
+ export type WebhookEnum = (typeof WebhookEnum)[keyof typeof WebhookEnum];
174
176
  /** A Discord webhook — an HTTP endpoint that can post messages to a channel. */
175
177
  export declare class Webhook extends BaseStructure {
176
178
  /** Webhook type. */ readonly type: number;
@@ -280,3 +282,11 @@ export declare class GuildOnboarding extends BaseStructure {
280
282
  mode: number;
281
283
  constructor(data: import("@lunibee/types").APIGuildOnboarding);
282
284
  }
285
+ /** @deprecated Use {@link WebhookEnum}. Removed in 2.0. */
286
+ export declare const WebhookType: {
287
+ readonly Incoming: 1;
288
+ readonly ChannelFollower: 2;
289
+ readonly Application: 3;
290
+ };
291
+ /** @deprecated Use {@link WebhookEnum}. Removed in 2.0. */
292
+ export type WebhookType = WebhookEnum;
@@ -176,6 +176,20 @@ export interface ClientOptions {
176
176
  roles?: boolean;
177
177
  emojis?: boolean;
178
178
  };
179
+ /**
180
+ * Default `allowed_mentions` for every message the client sends (channel
181
+ * send/edit, replies, interaction replies, edits and follow-ups), e.g.
182
+ * `{ parse: [] }` so nothing pings unless a message says so. A message's
183
+ * own `allowed_mentions` always wins.
184
+ */
185
+ allowedMentions?: AllowedMentions;
186
+ }
187
+ /** Discord's `allowed_mentions` object. */
188
+ export interface AllowedMentions {
189
+ parse?: ("users" | "roles" | "everyone")[];
190
+ users?: string[];
191
+ roles?: string[];
192
+ replied_user?: boolean;
179
193
  }
180
194
  /** Gateway connection configuration. */
181
195
  export interface GatewayOptions {
@@ -43,7 +43,7 @@ export declare const MessageFlags: {
43
43
  /** One {@link MessageFlags} value, usable as a type. */
44
44
  export type MessageFlags = (typeof MessageFlags)[keyof typeof MessageFlags];
45
45
  /** Discord channel types. */
46
- export declare const ChannelType: {
46
+ export declare const ChannelEnum: {
47
47
  readonly GuildText: 0;
48
48
  readonly DM: 1;
49
49
  readonly GuildVoice: 2;
@@ -58,8 +58,10 @@ export declare const ChannelType: {
58
58
  readonly GuildForum: 15;
59
59
  readonly GuildMedia: 16;
60
60
  };
61
+ /** One {@link ChannelEnum} value, usable as a type. */
62
+ export type ChannelEnum = (typeof ChannelEnum)[keyof typeof ChannelEnum];
61
63
  /** Discord component types. */
62
- export declare const ComponentType: {
64
+ export declare const ComponentEnum: {
63
65
  readonly ActionRow: 1;
64
66
  readonly Button: 2;
65
67
  readonly StringSelect: 3;
@@ -77,10 +79,10 @@ export declare const ComponentType: {
77
79
  readonly ContentInventoryEntry: 16;
78
80
  readonly Container: 17;
79
81
  };
80
- /** One {@link ComponentType} value, usable as a type. */
81
- export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
82
+ /** One {@link ComponentEnum} value, usable as a type. */
83
+ export type ComponentEnum = (typeof ComponentEnum)[keyof typeof ComponentEnum];
82
84
  /** Discord button style types. */
83
- export declare const ButtonStyle: {
85
+ export declare const ButtonType: {
84
86
  readonly Primary: 1;
85
87
  readonly Secondary: 2;
86
88
  readonly Success: 3;
@@ -88,17 +90,17 @@ export declare const ButtonStyle: {
88
90
  readonly Link: 5;
89
91
  readonly Premium: 6;
90
92
  };
91
- /** One {@link ButtonStyle} value, usable as a type: `style: ButtonStyle`. */
92
- export type ButtonStyle = (typeof ButtonStyle)[keyof typeof ButtonStyle];
93
+ /** One {@link ButtonType} value, usable as a type: `style: ButtonType`. */
94
+ export type ButtonType = (typeof ButtonType)[keyof typeof ButtonType];
93
95
  /** Discord text input style types. */
94
- export declare const TextInputStyle: {
96
+ export declare const TextInputType: {
95
97
  readonly Short: 1;
96
98
  readonly Paragraph: 2;
97
99
  };
98
- /** One {@link TextInputStyle} value, usable as a type. */
99
- export type TextInputStyle = (typeof TextInputStyle)[keyof typeof TextInputStyle];
100
+ /** One {@link TextInputType} value, usable as a type. */
101
+ export type TextInputType = (typeof TextInputType)[keyof typeof TextInputType];
100
102
  /** Discord interaction response types. */
101
- export declare const InteractionResponseType: {
103
+ export declare const InteractionResponseEnum: {
102
104
  readonly Pong: 1;
103
105
  readonly ChannelMessage: 4;
104
106
  readonly DeferredChannelMessage: 5;
@@ -107,18 +109,24 @@ export declare const InteractionResponseType: {
107
109
  readonly Autocomplete: 8;
108
110
  readonly Modal: 9;
109
111
  };
112
+ /** One {@link InteractionResponseEnum} value, usable as a type. */
113
+ export type InteractionResponseEnum = (typeof InteractionResponseEnum)[keyof typeof InteractionResponseEnum];
110
114
  /** Discord sticker format types. */
111
- export declare const StickerFormatType: {
115
+ export declare const StickerFormatEnum: {
112
116
  readonly PNG: 1;
113
117
  readonly APNG: 2;
114
118
  readonly Lottie: 3;
115
119
  readonly GIF: 4;
116
120
  };
121
+ /** One {@link StickerFormatEnum} value, usable as a type. */
122
+ export type StickerFormatEnum = (typeof StickerFormatEnum)[keyof typeof StickerFormatEnum];
117
123
  /** Discord sticker types. */
118
- export declare const StickerType: {
124
+ export declare const StickerEnum: {
119
125
  readonly Standard: 1;
120
126
  readonly Guild: 2;
121
127
  };
128
+ /** One {@link StickerEnum} value, usable as a type. */
129
+ export type StickerEnum = (typeof StickerEnum)[keyof typeof StickerEnum];
122
130
  /** Discord verification levels. */
123
131
  export declare const VerificationLevel: {
124
132
  readonly None: 0;
@@ -295,6 +303,35 @@ export interface APIMessageReaction {
295
303
  emoji: APIPartialEmoji;
296
304
  burst_colors?: string[];
297
305
  }
306
+ /** Raw Discord poll object. */
307
+ export interface APIPoll {
308
+ question: {
309
+ text?: string;
310
+ emoji?: APIPartialEmoji;
311
+ };
312
+ answers: Array<{
313
+ answer_id: number;
314
+ poll_media: {
315
+ text?: string;
316
+ emoji?: APIPartialEmoji;
317
+ };
318
+ }>;
319
+ expiry: string | null;
320
+ allow_multiselect: boolean;
321
+ layout_type: number;
322
+ results?: {
323
+ is_finalized: boolean;
324
+ answer_counts: Array<{
325
+ id: number;
326
+ count: number;
327
+ me_voted: boolean;
328
+ }>;
329
+ };
330
+ }
331
+ /** A forwarded message's snapshot of the original. */
332
+ export interface APIMessageSnapshot {
333
+ message: Partial<Pick<APIMessage, "type" | "content" | "embeds" | "attachments" | "timestamp" | "edited_timestamp" | "flags" | "mentions" | "mention_roles" | "sticker_items" | "components">>;
334
+ }
298
335
  /** Raw Discord message object. */
299
336
  export interface APIMessage {
300
337
  id: Snowflake;
@@ -329,7 +366,9 @@ export interface APIMessage {
329
366
  position?: number;
330
367
  role_subscription_data?: Record<string, unknown>;
331
368
  purchase_notification?: Record<string, unknown>;
332
- poll?: Record<string, unknown>;
369
+ poll?: APIPoll;
370
+ /** Forwarded messages: a partial copy of the original (content, embeds, attachments, …). */
371
+ message_snapshots?: APIMessageSnapshot[];
333
372
  guild_id?: Snowflake;
334
373
  /** The author's guild member, on guild messages from the Gateway (without `user`; the author is the user). */
335
374
  member?: Omit<APIGuildMember, "user"> & {
@@ -537,6 +576,17 @@ export interface APIVoiceServerUpdate {
537
576
  endpoint?: string | null;
538
577
  }
539
578
  /** Raw Discord activity object. */
579
+ /** Discord activity types, for presences (`setPresence({ activities: [{ name, type: ActivityEnum.Watching }] })`). */
580
+ export declare const ActivityEnum: {
581
+ readonly Playing: 0;
582
+ readonly Streaming: 1;
583
+ readonly Listening: 2;
584
+ readonly Watching: 3;
585
+ readonly Custom: 4;
586
+ readonly Competing: 5;
587
+ };
588
+ /** One {@link ActivityEnum} value, usable as a type. */
589
+ export type ActivityEnum = (typeof ActivityEnum)[keyof typeof ActivityEnum];
540
590
  export interface APIActivity {
541
591
  name: string;
542
592
  type: number;
@@ -744,7 +794,7 @@ export interface APIStageInstance {
744
794
  guild_scheduled_event_id?: Snowflake | null;
745
795
  }
746
796
  /** Discord application command option types. */
747
- export declare const ApplicationCommandOptionType: {
797
+ export declare const ApplicationCommandOptionEnum: {
748
798
  readonly SubCommand: 1;
749
799
  readonly SubCommandGroup: 2;
750
800
  readonly String: 3;
@@ -757,12 +807,16 @@ export declare const ApplicationCommandOptionType: {
757
807
  readonly Number: 10;
758
808
  readonly Attachment: 11;
759
809
  };
810
+ /** One {@link ApplicationCommandOptionEnum} value, usable as a type. */
811
+ export type ApplicationCommandOptionEnum = (typeof ApplicationCommandOptionEnum)[keyof typeof ApplicationCommandOptionEnum];
760
812
  /** Discord application command types. */
761
- export declare const ApplicationCommandType: {
813
+ export declare const ApplicationCommandEnum: {
762
814
  readonly ChatInput: 1;
763
815
  readonly User: 2;
764
816
  readonly Message: 3;
765
817
  };
818
+ /** One {@link ApplicationCommandEnum} value, usable as a type. */
819
+ export type ApplicationCommandEnum = (typeof ApplicationCommandEnum)[keyof typeof ApplicationCommandEnum];
766
820
  /** Raw Discord application command option. */
767
821
  export interface APIApplicationCommandOption {
768
822
  type: number;
@@ -859,3 +913,112 @@ export interface APISubscription {
859
913
  canceled_at: string | null;
860
914
  country?: string;
861
915
  }
916
+ /** @deprecated Use {@link ButtonType}. Removed in 2.0. */
917
+ export declare const ButtonStyle: {
918
+ readonly Primary: 1;
919
+ readonly Secondary: 2;
920
+ readonly Success: 3;
921
+ readonly Danger: 4;
922
+ readonly Link: 5;
923
+ readonly Premium: 6;
924
+ };
925
+ /** @deprecated Use {@link ButtonType}. Removed in 2.0. */
926
+ export type ButtonStyle = ButtonType;
927
+ /** @deprecated Use {@link TextInputType}. Removed in 2.0. */
928
+ export declare const TextInputStyle: {
929
+ readonly Short: 1;
930
+ readonly Paragraph: 2;
931
+ };
932
+ /** @deprecated Use {@link TextInputType}. Removed in 2.0. */
933
+ export type TextInputStyle = TextInputType;
934
+ /** @deprecated Use {@link ChannelEnum}. Removed in 2.0. */
935
+ export declare const ChannelType: {
936
+ readonly GuildText: 0;
937
+ readonly DM: 1;
938
+ readonly GuildVoice: 2;
939
+ readonly GroupDM: 3;
940
+ readonly GuildCategory: 4;
941
+ readonly GuildAnnouncement: 5;
942
+ readonly AnnouncementThread: 10;
943
+ readonly PublicThread: 11;
944
+ readonly PrivateThread: 12;
945
+ readonly GuildStageVoice: 13;
946
+ readonly GuildDirectory: 14;
947
+ readonly GuildForum: 15;
948
+ readonly GuildMedia: 16;
949
+ };
950
+ /** @deprecated Use {@link ChannelEnum}. Removed in 2.0. */
951
+ export type ChannelType = ChannelEnum;
952
+ /** @deprecated Use {@link ComponentEnum}. Removed in 2.0. */
953
+ export declare const ComponentType: {
954
+ readonly ActionRow: 1;
955
+ readonly Button: 2;
956
+ readonly StringSelect: 3;
957
+ readonly TextInput: 4;
958
+ readonly UserSelect: 5;
959
+ readonly RoleSelect: 6;
960
+ readonly MentionableSelect: 7;
961
+ readonly ChannelSelect: 8;
962
+ readonly Section: 9;
963
+ readonly TextDisplay: 10;
964
+ readonly Thumbnail: 11;
965
+ readonly MediaGallery: 12;
966
+ readonly File: 13;
967
+ readonly Separator: 14;
968
+ readonly ContentInventoryEntry: 16;
969
+ readonly Container: 17;
970
+ };
971
+ /** @deprecated Use {@link ComponentEnum}. Removed in 2.0. */
972
+ export type ComponentType = ComponentEnum;
973
+ /** @deprecated Use {@link InteractionResponseEnum}. Removed in 2.0. */
974
+ export declare const InteractionResponseType: {
975
+ readonly Pong: 1;
976
+ readonly ChannelMessage: 4;
977
+ readonly DeferredChannelMessage: 5;
978
+ readonly DeferredMessageUpdate: 6;
979
+ readonly MessageUpdate: 7;
980
+ readonly Autocomplete: 8;
981
+ readonly Modal: 9;
982
+ };
983
+ /** @deprecated Use {@link InteractionResponseEnum}. Removed in 2.0. */
984
+ export type InteractionResponseType = InteractionResponseEnum;
985
+ /** @deprecated Use {@link ApplicationCommandEnum}. Removed in 2.0. */
986
+ export declare const ApplicationCommandType: {
987
+ readonly ChatInput: 1;
988
+ readonly User: 2;
989
+ readonly Message: 3;
990
+ };
991
+ /** @deprecated Use {@link ApplicationCommandEnum}. Removed in 2.0. */
992
+ export type ApplicationCommandType = ApplicationCommandEnum;
993
+ /** @deprecated Use {@link ApplicationCommandOptionEnum}. Removed in 2.0. */
994
+ export declare const ApplicationCommandOptionType: {
995
+ readonly SubCommand: 1;
996
+ readonly SubCommandGroup: 2;
997
+ readonly String: 3;
998
+ readonly Integer: 4;
999
+ readonly Boolean: 5;
1000
+ readonly User: 6;
1001
+ readonly Channel: 7;
1002
+ readonly Role: 8;
1003
+ readonly Mentionable: 9;
1004
+ readonly Number: 10;
1005
+ readonly Attachment: 11;
1006
+ };
1007
+ /** @deprecated Use {@link ApplicationCommandOptionEnum}. Removed in 2.0. */
1008
+ export type ApplicationCommandOptionType = ApplicationCommandOptionEnum;
1009
+ /** @deprecated Use {@link StickerEnum}. Removed in 2.0. */
1010
+ export declare const StickerType: {
1011
+ readonly Standard: 1;
1012
+ readonly Guild: 2;
1013
+ };
1014
+ /** @deprecated Use {@link StickerEnum}. Removed in 2.0. */
1015
+ export type StickerType = StickerEnum;
1016
+ /** @deprecated Use {@link StickerFormatEnum}. Removed in 2.0. */
1017
+ export declare const StickerFormatType: {
1018
+ readonly PNG: 1;
1019
+ readonly APNG: 2;
1020
+ readonly Lottie: 3;
1021
+ readonly GIF: 4;
1022
+ };
1023
+ /** @deprecated Use {@link StickerFormatEnum}. Removed in 2.0. */
1024
+ export type StickerFormatType = StickerFormatEnum;
@@ -126,7 +126,7 @@ var MessageFlags = {
126
126
  Loading: 128,
127
127
  IsComponentsV2: 32768
128
128
  };
129
- var ChannelType = {
129
+ var ChannelEnum = {
130
130
  GuildText: 0,
131
131
  DM: 1,
132
132
  GuildVoice: 2,
@@ -141,7 +141,7 @@ var ChannelType = {
141
141
  GuildForum: 15,
142
142
  GuildMedia: 16
143
143
  };
144
- var ComponentType = {
144
+ var ComponentEnum = {
145
145
  ActionRow: 1,
146
146
  Button: 2,
147
147
  StringSelect: 3,
@@ -159,7 +159,7 @@ var ComponentType = {
159
159
  ContentInventoryEntry: 16,
160
160
  Container: 17
161
161
  };
162
- var ButtonStyle = {
162
+ var ButtonType = {
163
163
  Primary: 1,
164
164
  Secondary: 2,
165
165
  Success: 3,
@@ -167,11 +167,11 @@ var ButtonStyle = {
167
167
  Link: 5,
168
168
  Premium: 6
169
169
  };
170
- var TextInputStyle = {
170
+ var TextInputType = {
171
171
  Short: 1,
172
172
  Paragraph: 2
173
173
  };
174
- var InteractionResponseType = {
174
+ var InteractionResponseEnum = {
175
175
  Pong: 1,
176
176
  ChannelMessage: 4,
177
177
  DeferredChannelMessage: 5,
@@ -180,13 +180,13 @@ var InteractionResponseType = {
180
180
  Autocomplete: 8,
181
181
  Modal: 9
182
182
  };
183
- var StickerFormatType = {
183
+ var StickerFormatEnum = {
184
184
  PNG: 1,
185
185
  APNG: 2,
186
186
  Lottie: 3,
187
187
  GIF: 4
188
188
  };
189
- var StickerType = {
189
+ var StickerEnum = {
190
190
  Standard: 1,
191
191
  Guild: 2
192
192
  };
@@ -203,7 +203,15 @@ var PremiumTier = {
203
203
  Tier2: 2,
204
204
  Tier3: 3
205
205
  };
206
- var ApplicationCommandOptionType = {
206
+ var ActivityEnum = {
207
+ Playing: 0,
208
+ Streaming: 1,
209
+ Listening: 2,
210
+ Watching: 3,
211
+ Custom: 4,
212
+ Competing: 5
213
+ };
214
+ var ApplicationCommandOptionEnum = {
207
215
  SubCommand: 1,
208
216
  SubCommandGroup: 2,
209
217
  String: 3,
@@ -216,29 +224,48 @@ var ApplicationCommandOptionType = {
216
224
  Number: 10,
217
225
  Attachment: 11
218
226
  };
219
- var ApplicationCommandType = {
227
+ var ApplicationCommandEnum = {
220
228
  ChatInput: 1,
221
229
  User: 2,
222
230
  Message: 3
223
231
  };
232
+ var ButtonStyle = ButtonType;
233
+ var TextInputStyle = TextInputType;
234
+ var ChannelType = ChannelEnum;
235
+ var ComponentType = ComponentEnum;
236
+ var InteractionResponseType = InteractionResponseEnum;
237
+ var ApplicationCommandType = ApplicationCommandEnum;
238
+ var ApplicationCommandOptionType = ApplicationCommandOptionEnum;
239
+ var StickerType = StickerEnum;
240
+ var StickerFormatType = StickerFormatEnum;
224
241
  export {
242
+ ActivityEnum,
243
+ ApplicationCommandEnum,
244
+ ApplicationCommandOptionEnum,
225
245
  ApplicationCommandOptionType,
226
246
  ApplicationCommandType,
227
247
  ButtonStyle,
248
+ ButtonType,
249
+ ChannelEnum,
228
250
  ChannelType,
251
+ ComponentEnum,
229
252
  ComponentType,
230
253
  GatewayIntentBits,
231
254
  IntentBits,
232
255
  Intents,
233
256
  IntentsBitField,
257
+ InteractionResponseEnum,
234
258
  InteractionResponseType,
235
259
  MessageFlags,
236
260
  PremiumTier,
261
+ StickerEnum,
262
+ StickerFormatEnum,
237
263
  StickerFormatType,
238
264
  StickerType,
239
265
  TextInputStyle,
266
+ TextInputType,
240
267
  VerificationLevel,
241
268
  resolveGatewayIntents
242
269
  };
243
270
 
244
- //# debugId=C1043445F681533C64756E2164756E21
271
+ //# debugId=40CBDDAEDFA8DAF664756E2164756E21