dressed
Version:
A sleek, serverless-ready Discord bot framework.
14 lines (13 loc) • 748 B
TypeScript
import { type APISectionAccessoryComponent, type APISectionComponent, type APITextDisplayComponent } from "discord-api-types/v10";
/**
* Creates a section component
*
* Container to display text alongside an accessory component
*
* @param components One to three text components
* @param accessory A thumbnail or a button component, with a future possibility of adding more compatible components
*
* **IMPORTANT**:
* In order to use this component, you must add the `MessageFlags.IsComponentsV2` flag to your message
*/
export declare function Section(components: (APITextDisplayComponent | string)[], accessory: APISectionAccessoryComponent, config?: Omit<APISectionComponent, "components" | "accessory" | "type">): APISectionComponent;