package
0.0.0-20211209175121-4e18fe87588a
Repository: https://github.com/mavolin/adam.git
Documentation: pkg.go.dev
# Functions
AddResponseMiddlewares adds the passed middlewares to the list of the middlewares that are automatically added when awaiting a response from the user.
BuildEmbeds builds the passed *EmbedBuilders.
CountEmbedChars returns the number of characters in the embed.
EditEmbedBuilders builds the discord.Embeds from the passed *EmbedBuilders, and replaces the embeds of the message with the passed id in the invoking channel with them.
EditEmbedBuildersDM replaces the embeds of the message with the passed id in the direct message channel with the invoking user with those built from the passed *EmbedBuilders.
New creates a new *Builder that awaits a component interaction from the invoking user.
NewActionRow creates a new *ActionRowBuilder that stores the value of its components in the passed resultVar.
NewButton creates a new *ButtonBuilder with the given label and the corresponding go value.
NewButtonl creates a new *ButtonBuilder with the given label and the corresponding go value.
NewEmbed creates a new EmbedBuilder.
NewSelect creates a new *SelectBuilder that stores the value (state) of its components in the passed resultVar.
NewSelectOption creates a new *SelectOptionBuilder with the given label and the corresponding go value.
NewSelectOptionl creates a new *SelectOptionBuilder with the given label and the corresponding go value.
ReplyEmbedBuilders builds the discord.Embeds from the passed *EmbedBuilders and sends them in the channel the command was sent in.
ReplyEmbedBuildersDM builds the discord.Embeds from the passed *EmbedBuilders and sends them in a direct message to the invoking user.
# Constants
MaxChars is the maximum amount of characters Discord allows an embed to hold.
# Structs
ActionRowBuilder is a builder used to build a *discord.ActionRowComponent.
ActionRowError is the error returned if one of the ComponentBuilders inside an ActionRow failed to build.
Builder is a message builder.
No description provided by the author
No description provided by the author
SelectBuilder is a builder used to build a *discord.SelectComponent.
SelectError is the error returned if one of the SelectOptionBuilders inside a Select failed to build.
No description provided by the author
TimeoutError is an error that fulfills errors.As for *errors.UserInfo.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author