Documentation ¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
SPDX-License-Identifier: AGPL-3.0-only
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduledCC ¶
type ScheduledCC struct { ID int64 `json:"id"` Guild discord.Guild `json:"guild"` Channel discord.Channel `json:"channel"` Message discord.Message `json:"message"` Member discord.Member `json:"member"` Parameters string `json:"parameters"` }
func (*ScheduledCC) Offset ¶
func (dat *ScheduledCC) Offset() time.Duration
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is a Lua state. It is *not* thread safe and should be discarded once a command has been run.
func NewState ¶
func NewState(bot *bot.Bot, ctx *bcr.Context, params *parameters.Parameters) *State
NewState creates a new Lua state.
func (*State) Do ¶
Do executes the given Lua source with the given timeout. The Lua state is closed once this function returns and should not be reused. The timeout must be between 1ns and 5m inclusive.
func (*State) FilterErrors ¶
If err is a user error (such as one raised from the require. functions), pretty-print that error and return true.