Skip to content

Commit eb07339

Browse files
committed
Fixed $getComponents (cv2 support)
1 parent fb8db8a commit eb07339

File tree

118 files changed

+423
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+423
-281
lines changed

dist/native/message/getComponents.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ declare const _default: NativeFunction<[{
3939
description: string;
4040
rest: false;
4141
type: ArgType.String;
42+
}, {
43+
name: string;
44+
description: string;
45+
rest: false;
46+
type: ArgType.Number;
47+
}, {
48+
name: string;
49+
description: string;
50+
rest: false;
51+
type: ArgType.Enum;
52+
enum: typeof ComponentProperty;
4253
}], true>;
4354
export default _default;
4455
//# sourceMappingURL=getComponents.d.ts.map

dist/native/message/getComponents.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/message/getComponents.js

Lines changed: 42 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/message/getComponents.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/properties/component.d.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { MessageActionRowComponent } from "discord.js";
1+
import { ComponentInContainer, ContainerComponent, MessageActionRowComponent, ThumbnailComponent } from "discord.js";
22
export declare enum ComponentProperty {
3+
id = "id",
34
type = "type",
45
customID = "customID",
56
label = "label",
@@ -13,7 +14,18 @@ export declare enum ComponentProperty {
1314
optionNames = "optionNames",
1415
emoji = "emoji",
1516
optionDescriptions = "optionDescriptions",
16-
optionValues = "optionValues"
17+
optionValues = "optionValues",
18+
content = "content",
19+
accentColor = "accentColor",
20+
spoiler = "spoiler",
21+
divider = "divider",
22+
spacing = "spacing",
23+
items = "items",
24+
itemUrls = "itemUrls",
25+
fileUrl = "fileUrl",
26+
accessory = "accessory",
27+
components = "components",
28+
thumbnailUrl = "thumbnailUrl"
1729
}
18-
export declare const ComponentProperties: import("../functions/defineProperties").Properties<typeof ComponentProperty, MessageActionRowComponent>;
30+
export declare const ComponentProperties: import("../functions/defineProperties").Properties<typeof ComponentProperty, ContainerComponent | MessageActionRowComponent | ThumbnailComponent | ComponentInContainer>;
1931
//# sourceMappingURL=component.d.ts.map

dist/properties/component.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/properties/component.js

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)