Update comments for Godoc

This commit is contained in:
Dustin Pianalto 2020-04-06 11:47:32 -08:00
parent f978f4e43f
commit d300b341b3

View File

@ -16,12 +16,12 @@ func (c *Context) Send(message string) (*discordgo.Message, error) {
return c.Session.ChannelMessageSend(c.Channel.ID, message) return c.Session.ChannelMessageSend(c.Channel.ID, message)
} }
// Send embed to originating channel // Send an embed to originating channel
func (c *Context) SendEmbed(embed *discordgo.MessageEmbed) (*discordgo.Message, error) { func (c *Context) SendEmbed(embed *discordgo.MessageEmbed) (*discordgo.Message, error) {
return c.Session.ChannelMessageSendEmbed(c.Channel.ID, embed) return c.Session.ChannelMessageSendEmbed(c.Channel.ID, embed)
} }
// Send embed to originating channel // Send a file to originating channel
func (c *Context) SendFile(filename string, file io.Reader) (*discordgo.Message, error) { func (c *Context) SendFile(filename string, file io.Reader) (*discordgo.Message, error) {
return c.Session.ChannelFileSend(c.Channel.ID, filename, file) return c.Session.ChannelFileSend(c.Channel.ID, filename, file)
} }