mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 04:57:31 +00:00
Bot: Removed deprecated Wait() API
This commit is contained in:
parent
4e4ebde93a
commit
9411dcc74f
|
@ -196,12 +196,6 @@ func New(s *state.State, cmd interface{}) (*Context, error) {
|
||||||
return ctx, nil
|
return ctx, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait blocks until either the Gateway fatally exits or a SIGINT is received.
|
|
||||||
// Check the Gateway documentation for more information.
|
|
||||||
func (ctx *Context) Wait() error {
|
|
||||||
return ctx.Session.Wait()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Subcommands returns the slice of subcommands. To add subcommands, use
|
// Subcommands returns the slice of subcommands. To add subcommands, use
|
||||||
// RegisterSubcommand().
|
// RegisterSubcommand().
|
||||||
func (ctx *Context) Subcommands() []*Subcommand {
|
func (ctx *Context) Subcommands() []*Subcommand {
|
||||||
|
|
Loading…
Reference in a new issue