Versions in this module Expand all Collapse all v0 v0.1.0 Jun 3, 2023 Changes in this version + const API + const ARG_BOOLEAN + const ARG_CHANNEL + const ARG_INTEGER + const ARG_STRING + const ARG_SUBCOMMAND + const ARG_SUBCOMMAND_GROUP + const ARG_USER + const CHANNEL_TEXT + const CHANNEL_TEXT_CATEGORY + const CHANNEL_VOICE + const CHAT_INPUT + const WS_API + const WS_DISPATCH + const WS_HEARTBEAT + const WS_INDENTIFY + const WS_STATUS_UPDATE + const WS_VOICE_STATE_UPDATE + type Argument struct + Description string + Name string + Required bool + Type uint8 + type Bot struct + AppId string + Token string + func Auth(token string) (Bot, error) + func (bot *Bot) AddCommandHandler(command Command, handler CommandHandler) + func (bot *Bot) AddGlobalCommand(command *Command) error + func (bot *Bot) DeleteGlobalCommand(command *Command) error + func (bot *Bot) DeleteMessage(message *Message) error + func (bot *Bot) GetChannelMessages(channel *Channel) ([]Message, error) + func (bot *Bot) GetChannels(serverId string) ([]Channel, error) + func (bot *Bot) GetGlobalCommands() ([]Command, error) + func (bot *Bot) HandleEvents() error + func (bot *Bot) SendMessage(channel *Channel, content string) error + func (bot *Bot) SetMessageDeleteHanler(handler MessageDeleteHandler) + func (bot *Bot) SetMessageHandler(handler MessageHandler) + type Channel struct + Id string + Name string + Type uint8 + type Command struct + Description string + Id string + Name string + Options []Argument + Type uint8 + type CommandHandler = func(*Bot, *User, string, []WSArgument) string + type Member struct + User User + type Message struct + Author User + ChannelId string + Content string + Id string + Pinned bool + type MessageDeleteHandler = func(*Bot, *Channel) + type MessageHandler = func(*Bot, *Message) + type User struct + Id string + Username string + type WSArgument struct + Name string + Value *interface{} + type WSInteraction struct + Data struct{ ... } + GuildId string + Id string + Member Member + Token string + Type int + type WSResponse struct + Data struct{ ... } + Type uint8