在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bwmarrin/discordgo开源软件地址:https://github.com/bwmarrin/discordgo开源编程语言:Go 100.0%开源软件介绍:DiscordGoDiscordGo is a Go package that provides low level bindings to the Discord chat client API. DiscordGo has nearly complete support for all of the Discord API endpoints, websocket interface, and voice interface. If you would like to help the DiscordGo package please use this link to add the official DiscordGo test bot dgo to your server. This provides indispensable help to this project.
For help with this package or general Go discussion, please join the Discord Gophers chat server. Getting StartedInstallingThis assumes you already have a working Go environment, if not please see this page first.
go get github.com/bwmarrin/discordgo UsageImport the package into your project. import "github.com/bwmarrin/discordgo" Construct a new Discord client which can be used to access the variety of Discord API functions and to set callback functions for Discord events. discord, err := discordgo.New("Bot " + "authentication token") See Documentation and Examples below for more detailed information. DocumentationNOTICE: This library and the Discord API are unfinished. Because of that there may be major changes to library in the future. The DiscordGo code is fairly well documented at this point and is currently the only documentation available. Go reference (below) presents that information in a nice format. ExamplesBelow is a list of examples and other projects using DiscordGo. Please submit an issue if you would like your project added or removed from this list.
TroubleshootingFor help with common problems please reference the Troubleshooting section of the project wiki. ContributingContributions are very welcomed, however please follow the below guidelines.
List of Discord APIsSee this chart for a feature comparison and list of other Discord API libraries. Special ThanksChris Rhodes - For the DiscordGo logo and tons of PRs. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论