@lunibee/builders 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.
- package/README.md +24 -24
- package/package.json +1 -1
- package/src/attachment.ts +10 -1
- package/src/commands.ts +189 -82
- package/src/components.ts +200 -85
- package/src/embed.ts +10 -1
- package/src/index.ts +102 -34
package/src/index.ts
CHANGED
|
@@ -1,46 +1,114 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CreateEmbed } from "./embed.js";
|
|
2
2
|
export type { EmbedField } from "./embed.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
4
|
+
CreateButton,
|
|
5
|
+
ButtonType,
|
|
6
|
+
ComponentEnum,
|
|
7
|
+
CreateActionRow,
|
|
8
|
+
CreateStringSelect,
|
|
9
|
+
CreateStringSelectMenu,
|
|
10
|
+
CreateEntitySelect,
|
|
11
|
+
CreateUserSelectMenu,
|
|
12
|
+
CreateRoleSelectMenu,
|
|
13
|
+
CreateMentionableSelectMenu,
|
|
14
|
+
CreateChannelSelectMenu,
|
|
15
|
+
CreateModal,
|
|
16
|
+
CreateTextInput,
|
|
17
|
+
TextInputType,
|
|
18
|
+
CreateContainer,
|
|
19
|
+
CreateSection,
|
|
20
|
+
CreateTextDisplay,
|
|
21
|
+
CreateMediaGallery,
|
|
22
|
+
CreateFileComponent,
|
|
23
|
+
CreateSeparator,
|
|
24
|
+
CreateThumbnail,
|
|
25
|
+
CreateContentInventoryEntry,
|
|
26
26
|
componentsV2Message,
|
|
27
27
|
} from "./components.js";
|
|
28
28
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
CreateSlashCommand,
|
|
30
|
+
CreateStringOption,
|
|
31
|
+
CreateIntegerOption,
|
|
32
|
+
CreateNumberOption,
|
|
33
|
+
CreateBooleanOption,
|
|
34
|
+
CreateUserOption,
|
|
35
|
+
CreateChannelOption,
|
|
36
|
+
CreateRoleOption,
|
|
37
|
+
CreateMentionableOption,
|
|
38
|
+
CreateAttachmentOption,
|
|
39
|
+
CreateSubcommand,
|
|
40
|
+
CreateSubcommandGroup,
|
|
41
|
+
ApplicationCommandOptionEnum,
|
|
42
|
+
CreateUserCommand,
|
|
43
|
+
CreateMessageCommand,
|
|
44
|
+
CreateContextMenuCommand,
|
|
45
|
+
} from "./commands.js";
|
|
46
|
+
export { CreateAttachment, type AttachmentData } from "./attachment.js";
|
|
47
|
+
|
|
48
|
+
// Deprecated names (0.2.2), removed in 2.0.
|
|
49
|
+
export { AttachmentBuilder } from "./attachment.js";
|
|
50
|
+
export { EmbedBuilder } from "./embed.js";
|
|
51
|
+
export {
|
|
52
|
+
AttachmentOptionBuilder,
|
|
33
53
|
BooleanOptionBuilder,
|
|
34
|
-
UserOptionBuilder,
|
|
35
54
|
ChannelOptionBuilder,
|
|
36
|
-
|
|
55
|
+
CommandOptionBuilder,
|
|
56
|
+
ContextMenuCommandBuilder,
|
|
57
|
+
IntegerOptionBuilder,
|
|
37
58
|
MentionableOptionBuilder,
|
|
38
|
-
|
|
59
|
+
MessageCommandBuilder,
|
|
60
|
+
NumberOptionBuilder,
|
|
61
|
+
RoleOptionBuilder,
|
|
62
|
+
SlashCommandBuilder,
|
|
63
|
+
StringOptionBuilder,
|
|
39
64
|
SubcommandBuilder,
|
|
40
65
|
SubcommandGroupBuilder,
|
|
41
|
-
ApplicationCommandOptionType,
|
|
42
66
|
UserCommandBuilder,
|
|
43
|
-
|
|
44
|
-
|
|
67
|
+
UserOptionBuilder,
|
|
68
|
+
ApplicationCommandOptionType,
|
|
45
69
|
} from "./commands.js";
|
|
46
|
-
export {
|
|
70
|
+
export {
|
|
71
|
+
ButtonBuilder,
|
|
72
|
+
ChannelSelectMenuBuilder,
|
|
73
|
+
ContainerBuilder,
|
|
74
|
+
ContentInventoryEntryBuilder,
|
|
75
|
+
EntitySelectBuilder,
|
|
76
|
+
FileComponentBuilder,
|
|
77
|
+
MediaGalleryBuilder,
|
|
78
|
+
MentionableSelectMenuBuilder,
|
|
79
|
+
ModalBuilder,
|
|
80
|
+
RoleSelectMenuBuilder,
|
|
81
|
+
SectionBuilder,
|
|
82
|
+
SeparatorBuilder,
|
|
83
|
+
StringSelectBuilder,
|
|
84
|
+
StringSelectMenuBuilder,
|
|
85
|
+
TextDisplayBuilder,
|
|
86
|
+
TextInputBuilder,
|
|
87
|
+
ThumbnailBuilder,
|
|
88
|
+
UserSelectMenuBuilder,
|
|
89
|
+
ActionRowBuilder,
|
|
90
|
+
ButtonStyle,
|
|
91
|
+
TextInputStyle,
|
|
92
|
+
ComponentType,
|
|
93
|
+
} from "./components.js";
|
|
94
|
+
export type {
|
|
95
|
+
APIComponent,
|
|
96
|
+
APIComponentEmoji,
|
|
97
|
+
APIActionRowChild,
|
|
98
|
+
APIActionRowComponent,
|
|
99
|
+
APIButtonComponent,
|
|
100
|
+
APISelectOption,
|
|
101
|
+
APISelectDefaultValue,
|
|
102
|
+
APIStringSelectComponent,
|
|
103
|
+
APIEntitySelectComponent,
|
|
104
|
+
APITextInputComponent,
|
|
105
|
+
APIModalComponent,
|
|
106
|
+
APIContainerComponent,
|
|
107
|
+
APISectionComponent,
|
|
108
|
+
APITextDisplayComponent,
|
|
109
|
+
APIMediaGalleryComponent,
|
|
110
|
+
APIFileComponent,
|
|
111
|
+
APISeparatorComponent,
|
|
112
|
+
APIThumbnailComponent,
|
|
113
|
+
APIContentInventoryEntryComponent,
|
|
114
|
+
} from "./components.js";
|