Documentation
¶
Index ¶
- type ButtonsConfig
- type ComponentOptions
- type Config
- type ConfigOpt
- func WithButtonsConfig(buttonsConfig ButtonsConfig) ConfigOpt
- func WithCleanupInterval(cleanupInterval time.Duration) ConfigOpt
- func WithCustomIDPrefix(prefix string) ConfigOpt
- func WithEmbedColor(color int) ConfigOpt
- func WithNoPermissionMessage(noPermissionMessage string) ConfigOpt
- func WithTimeout(timeout time.Duration) ConfigOpt
- type Manager
- type Paginator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonsConfig ¶
type ButtonsConfig struct {
First *ComponentOptions
Back *ComponentOptions
Stop *ComponentOptions
Next *ComponentOptions
Last *ComponentOptions
}
type ComponentOptions ¶
type ComponentOptions struct {
Emoji discord.ComponentEmoji
Label string
Style discord.ButtonStyle
}
type Config ¶
type Config struct {
ButtonsConfig ButtonsConfig
NoPermissionMessage string
CustomIDPrefix string
EmbedColor int
CleanupInterval time.Duration
Timeout time.Duration
}
func DefaultConfig ¶
func DefaultConfig() *Config
type ConfigOpt ¶
type ConfigOpt func(config *Config)
func WithButtonsConfig ¶
func WithButtonsConfig(buttonsConfig ButtonsConfig) ConfigOpt
func WithCleanupInterval ¶
func WithCustomIDPrefix ¶
func WithEmbedColor ¶
func WithNoPermissionMessage ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.