Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
discordgo
✓ github.com/bwmarrin/discordgo
Create and start a Discord bot
package main
import (
"fmt"
"github.com/bwmarrin/discordgo"
)
func main() {
dg, err := discordgo.New("Bot <token>")
if err != nil {
panic(err)
}
err = dg.Open()
if err != nil {
panic(err)
}
fmt.Println("Bot is running...")
select {}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.29.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.