updated docs, minor changes

This commit is contained in:
2025-12-08 09:36:40 +01:00
parent 0c7909a701
commit 709abb30fa
5 changed files with 30 additions and 46 deletions

4
bot.go
View File

@@ -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()