integration

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 1 Imported by: 0

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

func WithEnableEmoticons(yes bool) Setting

WithEnableEmoticons sets whether emoticons are enabled for an integration.

func WithExpireBehavior

func WithExpireBehavior(t int) Setting

WithExpireBehavior sets the expiration behaviour of an integration.

func WithExpireGracePeriod

func WithExpireGracePeriod(t int) Setting

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

func NewSettings(opts ...Setting) *Settings

NewSettings returns new Settings to modify an integration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL