invites

package
v10.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InviteCreate

type InviteCreate struct {
	ChannelID         api.Snowflake        `json:"channel_id"`
	Code              string               `json:"code"`
	CreatedAt         time.Time            `json:"created_at"`
	GuildID           api.Snowflake        `json:"guild_id,omitempty"`
	Inviter           api.User             `json:"inviter"`
	MaxAge            int64                `json:"max_age"`
	MaxUses           int64                `json:"max_uses"`
	TargetType        api.InviteTargetType `json:"target_type,omitempty"`
	TargetUser        api.User             `json:"target_user,omitempty"`
	TargetApplication api.Application      `json:"target_application,omitempty"`
	Temporary         bool                 `json:"temporary"`
	Uses              int                  `json:"uses"`
}

InviteCreate - Sent when a new invite to a channel is created.

type InviteDelete

type InviteDelete struct {
	ChannelID api.Snowflake `json:"channel_id"`
	GuildID   api.Snowflake `json:"guild_id,omitempty"`
	Code      string        `json:"code"`
}

InviteDelete - Sent when an invite is deleted.

Jump to

Keyboard shortcuts

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