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 ¶
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 // PreHandler is the handler that is given to states; it is always // synchronous. PreHandler *handler.Handler // Custom Cabinet values. MemberStore *nstore.MemberStore PresenceStore *nstore.PresenceStore // Custom State values. NoteState *note.State ReadState *read.State MutedState *mute.State EmojiState *emoji.State MemberState *member.State RelationshipState *relationship.State // contains filtered or unexported fields }
func (*State) MessageMentions ¶
MessageMentions returns true if the given message mentions the current user.
func (*State) Online ¶
Online returns an online state. If the state is already online, then it returns itself.
func (*State) PrivateChannels ¶
PrivateChannels returns the sorted list of private channels from the state.
Click to show internal directories.
Click to hide internal directories.