ningen

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: ISC Imports: 12 Imported by: 1

README

ningen

Abstracted helpful functions and packages to aid in Discord client development.

Documentation

Overview

Package ningen contains a set of helpful functions and packages to aid in making a Discord client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connected added in v0.2.0

type Connected struct {
	Event gateway.Event
}

Connected is an event that's sent on Ready or Resumed. The event arrives before all ningen's handlers are called.

type State

type State struct {
	*state.State
	*handler.Handler

	// nil before Open().
	NoteState         *note.State
	ReadState         *read.State
	MutedState        *mute.State
	EmojiState        *emoji.State
	MemberState       *member.State
	RelationshipState *relationship.State
	// contains filtered or unexported fields
}

func FromState

func FromState(s *state.State) (*State, error)

FromState wraps a normal state.

func (*State) MessageMentions

func (s *State) MessageMentions(msg discord.Message) bool

func (*State) Open added in v0.2.0

func (s *State) Open() error

func (*State) PrivateChannels

func (s *State) PrivateChannels() ([]discord.Channel, error)

Directories

Path Synopsis
states
mute
Package mute implements a channel/guild muted state.
Package mute implements a channel/guild muted state.
read
Package read implements a read state with an event handler API.
Package read implements a read state with an event handler API.

Jump to

Keyboard shortcuts

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