session

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	Address string       `altid:"address,prompt:IP address of Discord server"`
	Auth    types.Auth   `altid:"auth,prompt:Authentication method to use:,pick:factotum|password"`
	SSL     string       `altid:"ssl,prompt:SSL mode,pick:none|simple|certificate"`
	User    string       `altid:"user,no_prompt"`
	Logdir  types.Logdir `altid:"logdir,no_prompt"`
	TLSCert string       `altid:"tlscert,no_prompt"`
	TLSKey  string       `altid:"tlskey,no_prompt"`
}

type Session

type Session struct {
	Client *discordgo.Session

	Defaults *Defaults
	Verbose  bool
	// contains filtered or unexported fields
}

func (*Session) Command

func (s *Session) Command(cmd *commander.Command) error

func (*Session) Connect

func (s *Session) Connect(Username string) error

Future, multiuser

func (*Session) Handle

func (s *Session) Handle(bufname string, l *markup.Lexer) error

func (*Session) Listen

func (s *Session) Listen(c controller.Controller)

func (*Session) Parse

func (s *Session) Parse()

func (*Session) Quit

func (s *Session) Quit()

func (*Session) Run

func (*Session) Start

func (s *Session) Start(c controller.Controller) error

Jump to

Keyboard shortcuts

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