invite

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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invite

type Invite struct {
	Code                     string          `json:"code"`
	Guild                    guild.Guild     `json:"guild"`
	Channel                  channel.Channel `json:"channel"`
	Inviter                  user.User       `json:"inviter"`
	TargetUser               user.User       `json:"target_user"`
	TargetUserType           TargetUserType  `json:"target_user_type"`
	ApproximatePresenceCount int             `json:"approximate_presence_count"`
	ApproximateMemberCount   int             `json:"approximate_member_count"`
}

type InviteMetadata

type InviteMetadata struct {
	Invite
	Uses      int       `json:"uses"`
	MaxUses   int       `json:"max_uses"`
	MaxAge    int       `json:"max_age"`
	Temporary bool      `json:"temporary"`
	CreatedAt time.Time `json:"created_at"`
}

type TargetUserType

type TargetUserType int
const (
	STREAM TargetUserType = 1
)

Jump to

Keyboard shortcuts

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