Versions in this module Expand all Collapse all v1 v1.24.19 Mar 7, 2021 Changes in this version + const MaxStringLength + var ErrStringTooLong = errors.NewPlain("String is too long (max 1MB)") + func CreateMessageEdit(values ...interface{}) (*discordgo.MessageEdit, error) + func CreateMessageSend(values ...interface{}) (*discordgo.MessageSend, error) + func KindOf(input interface{}, flag ...bool) (string, error) + func ToByte(from interface{}) []byte + func ToRune(from interface{}) []rune type Context + CurrentFrame *contextFrame + func (c *Context) ChannelArgNoDM(v interface{}) int64 + func (c *Context) MessageSend(content string) *discordgo.MessageSend + func (c *Context) SendResponse(content string) (*discordgo.Message, error) + type CtxChannel struct + Bitrate int + GuildID int64 + ID int64 + IsPrivate bool + LastMessageID int64 + NSFW bool + Name string + ParentID int64 + PermissionOverwrites []*discordgo.PermissionOverwrite + Position int + Topic string + Type discordgo.ChannelType + func CtxChannelFromCS(cs *dstate.ChannelState) *CtxChannel + func CtxChannelFromCSLocked(cs *dstate.ChannelState) *CtxChannel + type Dict map[interface{}]interface + func (d Dict) Del(key interface{}) string + func (d Dict) Get(key interface{}) interface{} + func (d Dict) Set(key interface{}, value interface{}) string type SDict + func StructToSdict(value interface{}) (SDict, error) + func (d SDict) Del(key string) string + type Slice []interface + func (s Slice) Append(item interface{}) (interface{}, error) + func (s Slice) AppendSlice(slice interface{}) (interface{}, error) + func (s Slice) Set(index int, item interface{}) (string, error) + func (s Slice) StringSlice(flag ...bool) interface{} v1.20.6 Sep 3, 2019 Changes in this version + const MaxOpsNormal + const MaxOpsPremium + var ErrTooManyAPICalls = errors.New("Too many potential discord api calls function") + var ErrTooManyCalls = errors.New("Too many calls to this function") + var GuildPremiumFunc func(guildID int64) (bool, error) + var StandardFuncMap = map[string]interface + func CreateEmbed(values ...interface{}) (*discordgo.MessageEmbed, error) + func CreateSlice(values ...interface{}) ([]interface{}, error) + func Dictionary(values ...interface{}) (map[interface{}]interface{}, error) + func LimitWriter(w io.Writer, n int64) io.Writer + func MaybeScheduledDeleteMessage(guildID, channelID, messageID int64, delaySeconds int) + func RegisterSetupFunc(f ContextSetupFunc) + func TODO() + func ToDuration(from interface{}) time.Duration + func ToFloat64(from interface{}) float64 + func ToInt64(from interface{}) int64 + func ToString(from interface{}) string + type Context struct + AddResponseReactionNames []string + BotUser *discordgo.User + CS *dstate.ChannelState + ContextFuncs map[string]interface{} + Counters map[string]int + Data map[string]interface{} + DelResponse bool + DelResponseDelay int + EmebdsToSend []*discordgo.MessageEmbed + FixedOutput string + GS *dstate.GuildState + IsPremium bool + MS *dstate.MemberState + MentionEveryone bool + MentionHere bool + MentionRoleNames []string + MentionRoles []int64 + Msg *discordgo.Message + Name string + RegexCache map[string]*regexp.Regexp + func NewContext(gs *dstate.GuildState, cs *dstate.ChannelState, ms *dstate.MemberState) *Context + func (c *Context) ChannelArg(v interface{}) int64 + func (c *Context) Execute(source string) (string, error) + func (c *Context) ExecuteAndSendWithErrors(source string, channelID int64) error + func (c *Context) IncreaseCheckCallCounter(key string, limit int) bool + func (c *Context) IncreaseCheckCallCounterPremium(key string, normalLimit, premiumLimit int) bool + func (c *Context) IncreaseCheckGenericAPICall() bool + func (c *Context) IncreaseCheckStateLock() bool + func (c *Context) LogEntry() *logrus.Entry + func (c *Context) Parse(source string) (*template.Template, error) + type ContextSetupFunc func(ctx *Context) + type SDict map[string]interface + func (d SDict) Get(key string) interface{} + func (d SDict) Set(key string, value interface{}) string + func StringKeyDictionary(values ...interface{}) (SDict, error)