session

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSession

func AddSession(sId string, s *Session)

func RemoveSession

func RemoveSession(sId string)

Types

type Session

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

func GetSession

func GetSession(sId string) (s *Session, ok bool)

func GetSessions

func GetSessions() (new []*Session)

func NewSession

func NewSession(s *discordgo.Session, ch *discordgo.Channel, sId string) *Session

func (*Session) Attack

func (s *Session) Attack(player string)

func (*Session) Chat

func (s *Session) Chat(message string)

func (*Session) Disconnect

func (s *Session) Disconnect(reason string)

func (*Session) InitClient

func (s *Session) InitClient(c *bedrock.Client)

func (*Session) Jump

func (s *Session) Jump()

func (*Session) Move

func (s *Session) Move(direction string)

func (*Session) Rainbow

func (s *Session) Rainbow()

func (*Session) Sneak

func (s *Session) Sneak()

Jump to

Keyboard shortcuts

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