1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-07-14 09:26:07 +00:00

Expanded docs

This commit is contained in:
diamondburned (Forefront) 2020-01-17 23:45:44 -08:00
parent 971c162d33
commit 5b25f0cdb4
2 changed files with 11 additions and 1 deletions

View file

@ -11,7 +11,15 @@
//
// Usage
//
// s.AddHandler(func(m *gateway.MessageCreateEvent) {})
// Handler's usage is similar to discordgo, in that AddHandler expects a
// function with only one argument. The only argument must be a pointer to one
// of the events, or an interface{} which would accept all events.
//
// AddHandler would panic if the handler is invalid.
//
// s.AddHandler(func(m *gateway.MessageCreateEvent) {
// log.Println(m.Author.Username, "said", m.Content)
// })
//
package handler

View file

@ -1,3 +1,5 @@
// Package state provides interfaces for a local or remote state, as well as
// abstractions around the REST API and Gateway events.
package state
import (