Versions in this module Expand all Collapse all v1 v1.0.1 Oct 18, 2024 Changes in this version + func NewEmbedFields(name string, value string, isInline bool) *discordgo.MessageEmbedField + func NewEmbedFooter(text string, iconUrl string) *discordgo.MessageEmbedFooter + func NewEmbedImage(url string, width int, height int) *discordgo.MessageEmbedImage + func NewEmbedProvider(url string, name string) *discordgo.MessageEmbedProvider + func NewEmbedThumbnail(url string, width int, height int) *discordgo.MessageEmbedThumbnail + func NewEmbedVideo(url string, width int, height int) *discordgo.MessageEmbedVideo + type ActionRow struct + func NewActionRow() *ActionRow + func (r *ActionRow) AddComponent(component Component) error + func (r *ActionRow) GetComponent() interface{} + type Bot struct + CommandManager *CommandManager + Session *discordgo.Session + func NewBot(token string, manager *CommandManager) (*Bot, error) + func (b *Bot) OnReady(callback func(r *discordgo.Ready)) + func (b *Bot) Run(callback func(session *discordgo.Session, err error)) + type Button struct + func NewButton() *Button + func (b *Button) AnyEmoji(emoji Emoji) *Button + func (b *Button) GetComponent() interface{} + func (b *Button) SetDisabled() *Button + func (b *Button) SetID(id string) *Button + func (b *Button) SetLabel(label string) *Button + func (b *Button) SetStyle(style discordgo.ButtonStyle) *Button + func (b *Button) SetURL(url string) *Button + type CommandGroup struct + Description string + GuildId string + Name string + SlashCommands []*SlashCommand + func NewCommandGroup(name string, description string, guildId string) *CommandGroup + func (cg *CommandGroup) AddCommand(command *SlashCommand) + type CommandManager struct + func NewCommandManager() *CommandManager + func (cm *CommandManager) AddGroup(group *CommandGroup) + func (cm *CommandManager) AddMessageComponentInteractionHandler(handler func(c *Ctx)) + func (cm *CommandManager) AddModalInteractionHandler(handler func(c *Ctx)) + func (cm *CommandManager) FindCommand(name string) func(ctx *Ctx) + type Component interface + GetComponent func() interface{} + type Ctx struct + Interaction *discordgo.InteractionCreate + Session *discordgo.Session + func (c *Ctx) FlagEphemeral() *Ctx + func (c *Ctx) FlagReply(flag discordgo.MessageFlags) *Ctx + func (c *Ctx) Send() error + func (c *Ctx) SetComponents(actionRows []Component) (*Ctx, error) + func (c *Ctx) SetContent(content string) *Ctx + func (c *Ctx) SetCustomID(id string) *Ctx + func (c *Ctx) SetFiles(files []*discordgo.File) *Ctx + func (c *Ctx) SetMessageEmbeds(embeds []*discordgo.MessageEmbed) + func (c *Ctx) SetResponseType(responseType discordgo.InteractionResponseType) *Ctx + func (c *Ctx) SetTTS() *Ctx + func (c *Ctx) SetTitle(title string) *Ctx + type Emoji struct + func NewEmoji(name string, animated bool, id string) *Emoji + type MessageEmbed struct + func NewMessageEmbed() *MessageEmbed + func (m *MessageEmbed) GetComponent() *discordgo.MessageEmbed + func (m *MessageEmbed) SetAuthor(author *discordgo.MessageEmbedAuthor) *MessageEmbed + func (m *MessageEmbed) SetColor(color int) *MessageEmbed + func (m *MessageEmbed) SetDescription(description string) *MessageEmbed + func (m *MessageEmbed) SetFields(fields []*discordgo.MessageEmbedField) *MessageEmbed + func (m *MessageEmbed) SetFooter(footer *discordgo.MessageEmbedFooter) *MessageEmbed + func (m *MessageEmbed) SetImage(image *discordgo.MessageEmbedImage) *MessageEmbed + func (m *MessageEmbed) SetProvider(provider *discordgo.MessageEmbedProvider) *MessageEmbed + func (m *MessageEmbed) SetThumbnail(thumbnail *discordgo.MessageEmbedThumbnail) *MessageEmbed + func (m *MessageEmbed) SetTimestamp(timestamp string) *MessageEmbed + func (m *MessageEmbed) SetTitle(title string) *MessageEmbed + func (m *MessageEmbed) SetType(embedType discordgo.EmbedType) *MessageEmbed + func (m *MessageEmbed) SetURL(url string) *MessageEmbed + func (m *MessageEmbed) SetVideo(video *discordgo.MessageEmbedVideo) *MessageEmbed + type MessageEmbedAuthor struct + func NewEmbedAuthor(author string) *MessageEmbedAuthor + func (a *MessageEmbedAuthor) GetComponent() interface{} + func (a *MessageEmbedAuthor) SetIcon(icon string) *MessageEmbedAuthor + func (a *MessageEmbedAuthor) SetURL(url string) *MessageEmbedAuthor + type SelectMenu struct + func NewSelectMenu(menuType discordgo.SelectMenuType) *SelectMenu + func (sm *SelectMenu) AddChannelTypes(channelTypes []discordgo.ChannelType) *SelectMenu + func (sm *SelectMenu) AddDefaultValue(id string, valueType discordgo.SelectMenuDefaultValueType) *SelectMenu + func (sm *SelectMenu) AddID(id string) *SelectMenu + func (sm *SelectMenu) AddOptions(options []SelectMenuOption) *SelectMenu + func (sm *SelectMenu) GetComponent() interface{} + func (sm *SelectMenu) PlaceHolder(placeholder string) + func (sm *SelectMenu) SetMinMax(min int, max int) *SelectMenu + type SelectMenuOption struct + func NewSelectMenuOption(label string, value string, description string) *SelectMenuOption + func (sm *SelectMenuOption) AnyEmoji(emoji *Emoji) *SelectMenuOption + func (sm *SelectMenuOption) Default() *SelectMenuOption + func (sm *SelectMenuOption) GetComponent() discordgo.SelectMenuOption + type SlashCommand struct + Command *discordgo.ApplicationCommand + Handler func(ctx *Ctx) + func NewSlashCommand(command discordgo.ApplicationCommand) *SlashCommand + func (c *SlashCommand) SetHandler(handler func(ctx *Ctx)) + type TextInput struct + func NewTextInput(id string) *TextInput + func (t *TextInput) GetComponent() interface{} + func (t *TextInput) Required() *TextInput + func (t *TextInput) SetLabel(label string) *TextInput + func (t *TextInput) SetMinMax(min int, max int) *TextInput + func (t *TextInput) SetPlaceholder(placeholder string) *TextInput + func (t *TextInput) SetStyle(style discordgo.TextInputStyle) *TextInput + func (t *TextInput) SetValue(value string) *TextInput v1.0.0 Oct 16, 2024