mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-22 12:33:38 +00:00
Expanded docs
This commit is contained in:
parent
971c162d33
commit
5b25f0cdb4
|
|
@ -11,7 +11,15 @@
|
||||||
//
|
//
|
||||||
// Usage
|
// 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
|
package handler
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue