Skip to content

Commit 4b7f0d3

Browse files
committed
Support editing select menus in cv2
1 parent 0d14265 commit 4b7f0d3

File tree

189 files changed

+856
-520
lines changed

Some content is hidden

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

189 files changed

+856
-520
lines changed

dist/functions/components.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { ActionRowBuilder, ButtonBuilder, ChannelSelectMenuBuilder, ComponentType, ContainerBuilder, FileBuilder, MediaGalleryBuilder, MentionableSelectMenuBuilder, RoleSelectMenuBuilder, SectionBuilder, SeparatorBuilder, StringSelectMenuBuilder, TextDisplayBuilder, UserSelectMenuBuilder } from "discord.js";
2+
import { Context } from "../structures";
3+
/**
4+
* Checks whether the specified component type is a top level component.
5+
* @param type The component type.
6+
* @param actionRow Whether to include action rows when checking. Defaults to true.
7+
* @returns
8+
*/
9+
export declare function isTopLevel(type: ComponentType, actionRow?: boolean): boolean;
10+
/**
11+
* Builds a message component for action rows.
12+
* @param comp The component data.
13+
* @returns
14+
*/
15+
export declare function buildActionRow(comp: any): ButtonBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder | ChannelSelectMenuBuilder | RoleSelectMenuBuilder | MentionableSelectMenuBuilder;
16+
/**
17+
* Builds a top level component.
18+
* @param comp The component data.
19+
* @param ctx The current context, if any.
20+
* @returns
21+
*/
22+
export declare function buildComponent(comp: any, ctx?: Context): ContainerBuilder | FileBuilder | MediaGalleryBuilder | SectionBuilder | SeparatorBuilder | TextDisplayBuilder | ActionRowBuilder<import("@discordjs/builders").AnyComponentBuilder>;
23+
/**
24+
* Adds an action row. This is only needed inside ComponentsV2 functions and should never be used outside this context.
25+
* @param ctx The current context.
26+
* @returns
27+
*/
28+
export declare function addActionRow(ctx: Context): void;
29+
//# sourceMappingURL=components.d.ts.map

dist/functions/components.d.ts.map

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

dist/functions/components.js

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

dist/functions/components.js.map

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

dist/native/automod/getAutomodRule.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/automod/getAutomodRule.js

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

dist/native/automod/getAutomodRule.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/native/component/addContainer.js

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

dist/native/component/addContainer.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/native/component/addFile.js

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

0 commit comments

Comments
 (0)