Skip to content

Commit 5265ca9

Browse files
committed
Fixed $loadComponents, $fetchResponse, $fetchComponents
1 parent 7de3a29 commit 5265ca9

File tree

162 files changed

+536
-385
lines changed

Some content is hidden

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

162 files changed

+536
-385
lines changed
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 ctx The current context.
19+
* @param comp The component data.
20+
* @returns
21+
*/
22+
export declare function buildComponent(ctx: Context, comp: any): ActionRowBuilder<import("@discordjs/builders").AnyComponentBuilder> | ContainerBuilder | FileBuilder | MediaGalleryBuilder | SectionBuilder | SeparatorBuilder | TextDisplayBuilder;
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=componentBuilders.d.ts.map

dist/functions/componentBuilders.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/componentBuilders.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/componentBuilders.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/bot/botTeamCreatedAt.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/bot/botTeamCreatedAt.js

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/bot/botTeamCreatedAt.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/bot/botTeamID.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/bot/botTeamID.js

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/bot/botTeamID.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.

0 commit comments

Comments
 (0)