Fix examples.

This commit is contained in:
Chris Rhodes 2016-01-08 09:49:29 -08:00
parent ea33680562
commit da20bf63b5
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ func main() {
// This function will be called (due to above assignment) every time a new // This function will be called (due to above assignment) every time a new
// message is created on any channel that the autenticated user has access to. // message is created on any channel that the autenticated user has access to.
func messageCreate(s *discordgo.Session, m discordgo.Message) { func messageCreate(s *discordgo.Session, m *discordgo.Message) {
// Print message to stdout. // Print message to stdout.
fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content) fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content)

View file

@ -39,7 +39,7 @@ func main() {
// This function will be called (due to above assignment) every time a new // This function will be called (due to above assignment) every time a new
// message is created on any channel that the autenticated user has access to. // message is created on any channel that the autenticated user has access to.
func messageCreate(s *discordgo.Session, m discordgo.Message) { func messageCreate(s *discordgo.Session, m *discordgo.Message) {
// Print message to stdout. // Print message to stdout.
fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content) fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content)