Goscord / goscord

A Discord API wrapper written in Golang.
https://goscord.dev
MIT License
74 stars 16 forks source link

"SendMessage" was renamed, documentation needs to be updated #11

Closed uvulpos closed 1 year ago

uvulpos commented 1 year ago
client.On("messageCreate", func(msg *discord.Message) {
    if msg.Content == "ping" {
-       client.Channel.Send(msg.ChannelId, "Pong ! 🏓")
+               client.Channel.SendMessage(msg.ChannelId, "Pong ! 🏓")
    }
})
szerookii commented 1 year ago

Indeed the documentation is out of date, this will be corrected before the v1 release.