Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setting ¶
type Setting func(*Settings)
Setting is a function that configures an integration.
func WithEnableEmoticons ¶
WithEnableEmoticons sets whether emoticons are enabled for an integration.
func WithExpireBehavior ¶
WithExpireBehavior sets the expiration behaviour of an integration.
func WithExpireGracePeriod ¶
WithExpireGracePeriod sets the expire grace period of an integration.
type Settings ¶
type Settings struct { // The behavior when an integration subscription lapses. ExpireBehavior *optional.Int // Period (in seconds) where the integration will ignore lapsed subscriptions. ExpireGracePeriod *optional.Int // Whether emoticons should be synced for this integration (twitch only currently). EnableEmoticons *optional.Bool }
Settings describes a guild integration's settings.
func NewSettings ¶
NewSettings returns new Settings to modify an integration.
Click to show internal directories.
Click to hide internal directories.