invite

package
v0.0.0-...-7245f98 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fly

type Fly struct {
	// contains filtered or unexported fields
}

Fly is a resource for interacting with Invites.

func New

func New(client flies.RestClient, code, token string) *Fly

New creates a new Fly from the given parameters.

func (*Fly) Delete

func (f *Fly) Delete(ctx context.Context, reason string) (*sigil.Invite, error)

Delete deletes the Invite.

Requires `MANAGE_CHANNELS` to remove a Channel Invite, or `MANAGE_GUILD` to remove an Invite across a Guild.

func (*Fly) Get

func (f *Fly) Get(ctx context.Context, withCounts, withExpiration bool) (*sigil.Invite, error)

Get fetches the Invite.

Jump to

Keyboard shortcuts

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