relationship

package
v2.0.0-...-9d96e6b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

func NewState

func NewState(r handlerrepo.AddHandler) *State

func (*State) Blocked

func (r *State) Blocked(userID discord.UserID) bool

Blocked returns if the user is blocked.

func (*State) Each

func (r *State) Each(fn func(*discord.Relationship) (stop bool))

func (*State) Relationship

func (r *State) Relationship(userID discord.UserID) discord.RelationshipType

Relationship returns the relationship for the given user, or 0 if there is none.

Jump to

Keyboard shortcuts

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