Documentation ¶
Index ¶
- Variables
- func ExpireMessage(b *bot.Bot, s *discordgo.Session, msg *discordgo.Message)
- func MemberHasPermission(s *discordgo.Session, guildID string, userID string, permission int64) (bool, error)
- func TrimChannel(ctx *gumi.Ctx, n int) string
- func TrimUserMention(ctx *gumi.Ctx, n int) string
- type EmbedWidget
- type Range
- type WidgetAction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotRange = errors.New("not range") ErrRangeSyntax = errors.New("range low is higher than range high") )
Functions ¶
func ExpireMessage ¶
Deletes a specified message after a certain time
func MemberHasPermission ¶
Types ¶
type EmbedWidget ¶
type EmbedWidget struct { Pages []*discordgo.MessageEmbed // contains filtered or unexported fields }
EmbedWidget is an interactive DiscordGo widget interface
func NewWidget ¶
func NewWidget(s *discordgo.Session, author string, embeds []*discordgo.MessageEmbed) *EmbedWidget
func (*EmbedWidget) Start ¶
func (w *EmbedWidget) Start(channelID string) error
func (*EmbedWidget) WithCallback ¶
func (w *EmbedWidget) WithCallback(fn func(WidgetAction, int) error)
type WidgetAction ¶
type WidgetAction int
const ( WidgetActionFirstPage WidgetAction = iota WidgetActionFiveDown WidgetActionPreviousPage WidgetActionStop WidgetActionNextPage WidgetActionFiveUp WidgetActionLastPage )
func (WidgetAction) String ¶
func (a WidgetAction) String() string
Click to show internal directories.
Click to hide internal directories.