Merge branch 'buttons-dropdowns' of https://github.com/discordeno/discordeno into buttons-dropdowns

This commit is contained in:
Skillz
2021-05-01 10:23:39 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,11 +1,10 @@
import { SnakeCasedPropertiesDeep } from "../../util.ts";
import { ButtonComponent } from "./button_component.ts";
// TODO: add docs link
export interface ActionRow {
/** Action rows are a group of buttons. */
type: 1;
/** The button components */
components: ButtonComponent[];
}
export type DiscordActionRow = SnakeCasedPropertiesDeep<ActionRow>;

View File

@@ -1,6 +1,7 @@
import { SnakeCasedPropertiesDeep } from "../../util.ts";
import { ButtonStyles } from "./button_styles.ts";
// TODO: add docs link
export interface ButtonComponent {
/** All button components have type 2 */
type: 2;