Documentation ¶
Index ¶
- type Context
- func (ctx *Context) Arg(index int) string
- func (ctx *Context) ArgArray() []string
- func (ctx *Context) Argc() int
- func (ctx *Context) Args(begin, end int) string
- func (ctx *Context) Edit(messageID, content string) (*discordgo.Message, error)
- func (ctx *Context) EditComplex(data *discordgo.MessageEdit) (*discordgo.Message, error)
- func (ctx *Context) ParseContent(content string) error
- func (ctx *Context) React(emoji string) (*discordgo.MessageReaction, error)
- func (ctx *Context) Send(content string) (*discordgo.Message, error)
- func (ctx *Context) SendComplex(data *discordgo.MessageSend) (*discordgo.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Bot *bot.Bot Session *discordgo.Session Message *discordgo.Message Channel *discordgo.Channel Guild *discordgo.Guild Author *discordgo.User Prefix string RegisterResponses bool // delete? // contains filtered or unexported fields }
Context represents context object
func (*Context) EditComplex ¶
EditComplex is a wrapper for ChannelMessageEdit
func (*Context) ParseContent ¶
TODO: arg parser TODO: flag parser
func (*Context) React ¶
func (ctx *Context) React(emoji string) (*discordgo.MessageReaction, error)
experimental, arguments may change React reacts with emoji to given message
func (*Context) Send ¶
experimental, arguments may change TODO: ChannelMessageSendComplex implementation Send is a wrapper for ChannelMessageSend
func (*Context) SendComplex ¶
SendComplex is a wrapper for ChannelMessageSendComplex
Click to show internal directories.
Click to hide internal directories.