integration

package
v0.0.0-...-8fd61c5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Id           string        `json:"id"`
	Name         string        `json:"name"`
	Type         string        `json:"type"` // youtube, twitch, etc.
	Revoked      bool          `json:"revoked"`
	Integrations []Integration `json:"integrations"`
	Verified     bool          `json:"verified"`
	FriendSync   bool          `json:"friend_sync"`
	ShowActivity bool          `json:"show_activity"`
	Visibility   Visibility    `json:"visibility"`
}

type Integration

type Integration struct {
	Id                uint64                     `json:"id,string"`
	Name              string                     `json:"name"`
	Type              string                     `json:"type"` // twitch, youtube, etc.
	Enabled           bool                       `json:"enabled"`
	Syncing           bool                       `json:"syncing"`
	RoleId            uint64                     `json:"role_id,string"`
	EnableEmoticons   bool                       `json:"enable_emoticons"`
	ExpireBehaviour   IntegrationExpireBehaviour `json:"expire_behavior"`
	ExpireGracePeriod int                        `json:"expire_grace_period"`
	User              user.User                  `json:"user"`
	Account           guild.Account              `json:"account"`
	SyncedAt          time.Time                  `json:"synced_at"`
}

type IntegrationExpireBehaviour

type IntegrationExpireBehaviour int
const (
	RemoveRole IntegrationExpireBehaviour = 0
	Kick       IntegrationExpireBehaviour = 1
)

type Visibility

type Visibility int
const (
	VisibilityNone     Visibility = 0
	VisibilityEveryone Visibility = 1
)

Jump to

Keyboard shortcuts

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