forked from pothtonswer/discordmuffin
Fix examples.
This commit is contained in:
parent
ea33680562
commit
da20bf63b5
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ func main() {
|
|||
|
||||
// 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.
|
||||
func messageCreate(s *discordgo.Session, m discordgo.Message) {
|
||||
func messageCreate(s *discordgo.Session, m *discordgo.Message) {
|
||||
|
||||
// Print message to stdout.
|
||||
fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content)
|
||||
|
|
|
@ -39,7 +39,7 @@ func main() {
|
|||
|
||||
// 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.
|
||||
func messageCreate(s *discordgo.Session, m discordgo.Message) {
|
||||
func messageCreate(s *discordgo.Session, m *discordgo.Message) {
|
||||
|
||||
// Print message to stdout.
|
||||
fmt.Printf("%20s %20s %20s > %s\n", m.ChannelID, time.Now().Format(time.Stamp), m.Author.Username, m.Content)
|
||||
|
|
Loading…
Reference in a new issue