Component evidence
Defines Discord bot message components such as buttons, select menus, and action rows with JSON serialization. Use when building Discord bots in Go.
// Source: https://github.com/bwmarrin/discordgo | License: BSD-3-Clause | Copyright 2015, Bruce Marriner // Provided via justclaw.it.com; keep this notice with the code. package discordgo import ( "encoding/json" "fmt" ) // ComponentType is type of component. type ComponentType uint // MessageComponent types. const ( ActionsRowComponent ComponentType = 1 ButtonComponent ComponentType = 2 SelectMenuComponent ComponentType = 3 TextInputComponent ComponentType = 4 UserSelectMenuComponent ComponentType = 5 RoleSelectMenuComponent ComponentType = 6 MentionableSelectMenuComponent ComponentType = 7 ChannelSelectMenuComponent ComponentType = 8 SectionComponent ComponentType = 9 TextDisplayComponent ... (truncated -- full source via MCP)