Documentation ¶
Overview ¶
Package fakediscord provides an in-memory implementation of the Discord API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationDevInfo ¶
ApplicationDevInfo represents the information a Discord developer obtains from the developer portal.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
A Server is an isolated instance of the Discord API. It implements http.Handler and serves at the path "/api". It is safe to call Server's methods from multiple goroutines. The zero value is an instance of the Discord API without any users or channels.
func (*Server) RegisterBot ¶
func (srv *Server) RegisterBot(username string) *ApplicationDevInfo
RegisterBot creates a new application and bot user.
func (*Server) RegisterUser ¶
RegisterUser creates a new end-user account.
Click to show internal directories.
Click to hide internal directories.