updated docs, minor changes
This commit is contained in:
4
bot.go
4
bot.go
@@ -36,7 +36,7 @@ type Handshake struct {
|
||||
}
|
||||
|
||||
type BotHandshake struct {
|
||||
ChannelId string `json:"channel_id"`
|
||||
BotID string `json:"bot_id"`
|
||||
}
|
||||
|
||||
type GatewayAck struct {
|
||||
@@ -111,7 +111,7 @@ func main() {
|
||||
return nil
|
||||
})
|
||||
|
||||
bhs := BotHandshake{ChannelId: channelID}
|
||||
bhs := BotHandshake{BotID: "discord-bot"}
|
||||
data, err := json.Marshal(bhs)
|
||||
if err != nil {
|
||||
_ = conn.Close()
|
||||
|
||||
Reference in New Issue
Block a user