{"id":13367172,"url":"https://github.com/bwmarrin/discordGo","last_synced_at":"2025-03-12T18:32:07.589Z","repository":{"id":37752202,"uuid":"45356931","full_name":"bwmarrin/discordgo","owner":"bwmarrin","description":" (Golang) Go bindings for Discord","archived":false,"fork":false,"pushed_at":"2025-03-04T10:13:56.000Z","size":2633,"stargazers_count":5278,"open_issues_count":186,"forks_count":830,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-03-11T00:40:28.095Z","etag":null,"topics":["discord","discord-api","discordgo","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwmarrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-01T20:51:01.000Z","updated_at":"2025-03-10T18:59:16.000Z","dependencies_parsed_at":"2024-01-01T06:20:25.905Z","dependency_job_id":"53b8774e-4a0e-4086-afd9-99c0f841fd2a","html_url":"https://github.com/bwmarrin/discordgo","commit_stats":{"total_commits":1317,"total_committers":235,"mean_commits":5.604255319148936,"dds":0.6347760060744115,"last_synced_commit":"6af2451cd401e1b9b9bb4419aaf8460156f723cb"},"previous_names":["bwmarrin/discord.go","siacn/discordgo","bwmarrin/godiscord"],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwmarrin%2Fdiscordgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwmarrin%2Fdiscordgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwmarrin%2Fdiscordgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwmarrin%2Fdiscordgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwmarrin","download_url":"https://codeload.github.com/bwmarrin/discordgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271523,"owners_count":20264471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-api","discordgo","go","golang"],"created_at":"2024-07-30T00:01:40.465Z","updated_at":"2025-03-12T18:32:07.567Z","avatar_url":"https://github.com/bwmarrin.png","language":"Go","readme":"# DiscordGo\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/bwmarrin/discordgo.svg)](https://pkg.go.dev/github.com/bwmarrin/discordgo) [![Go Report Card](https://goreportcard.com/badge/github.com/bwmarrin/discordgo)](https://goreportcard.com/report/github.com/bwmarrin/discordgo) [![CI](https://github.com/bwmarrin/discordgo/actions/workflows/ci.yml/badge.svg)](https://github.com/bwmarrin/discordgo/actions/workflows/ci.yml) [![Discord Gophers](https://img.shields.io/badge/Discord%20Gophers-%23discordgo-blue.svg)](https://discord.gg/golang) [![Discord API](https://img.shields.io/badge/Discord%20API-%23go_discordgo-blue.svg)](https://discord.com/invite/discord-api)\n\n\u003cimg align=\"right\" alt=\"DiscordGo logo\" src=\"docs/img/discordgo.svg\" width=\"400\"\u003e\n\nDiscordGo is a [Go](https://golang.org/) package that provides low level \nbindings to the [Discord](https://discord.com/) chat client API. DiscordGo \nhas nearly complete support for all of the Discord API endpoints, websocket\ninterface, and voice interface.\n\nIf you would like to help the DiscordGo package please use \n[this link](https://discord.com/oauth2/authorize?client_id=173113690092994561\u0026scope=bot)\nto add the official DiscordGo test bot **dgo** to your server. This provides \nindispensable help to this project.\n\n* See [dgVoice](https://github.com/bwmarrin/dgvoice) package for an example of\nadditional voice helper functions and features for DiscordGo.\n\n* See [dca](https://github.com/bwmarrin/dca) for an **experimental** stand alone\ntool that wraps `ffmpeg` to create opus encoded audio appropriate for use with\nDiscord (and DiscordGo).\n\n**For help with this package or general Go discussion, please join the [Discord \nGophers](https://discord.gg/golang) chat server.**\n\n## Getting Started\n\n### Installing\n\nThis assumes you already have a working Go environment, if not please see\n[this page](https://golang.org/doc/install) first.\n\n`go get` *will always pull the latest tagged release from the master branch.*\n\n```sh\ngo get github.com/bwmarrin/discordgo\n```\n\n### Usage\n\nImport the package into your project.\n\n```go\nimport \"github.com/bwmarrin/discordgo\"\n```\n\nConstruct a new Discord client which can be used to access the variety of \nDiscord API functions and to set callback functions for Discord events.\n\n```go\ndiscord, err := discordgo.New(\"Bot \" + \"authentication token\")\n```\n\nSee Documentation and Examples below for more detailed information.\n\n\n## Documentation\n\n**NOTICE**: This library and the Discord API are unfinished.\nBecause of that there may be major changes to library in the future.\n\nThe DiscordGo code is fairly well documented at this point and is currently\nthe only documentation available. Go reference (below) presents that information in a nice format.\n\n- [![Go Reference](https://pkg.go.dev/badge/github.com/bwmarrin/discordgo.svg)](https://pkg.go.dev/github.com/bwmarrin/discordgo) \n- Hand crafted documentation coming eventually.\n\n\n## Examples\n\nBelow is a list of examples and other projects using DiscordGo.  Please submit \nan issue if you would like your project added or removed from this list. \n\n- [DiscordGo Examples](https://github.com/bwmarrin/discordgo/tree/master/examples) - A collection of example programs written with DiscordGo\n- [Awesome DiscordGo](https://github.com/bwmarrin/discordgo/wiki/Awesome-DiscordGo) - A curated list of high quality projects using DiscordGo\n\n## Troubleshooting\nFor help with common problems please reference the \n[Troubleshooting](https://github.com/bwmarrin/discordgo/wiki/Troubleshooting) \nsection of the project wiki.\n\n\n## Contributing\nContributions are very welcomed, however please follow the below guidelines.\n\n- First open an issue describing the bug or enhancement so it can be\ndiscussed.  \n- Try to match current naming conventions as closely as possible.  \n- This package is intended to be a low level direct mapping of the Discord API, \nso please avoid adding enhancements outside of that scope without first \ndiscussing it.\n- Create a Pull Request with your changes against the master branch.\n\n\n## List of Discord APIs\n\nSee [this chart](https://abal.moe/Discord/Libraries.html) for a feature \ncomparison and list of other Discord API libraries.\n\n## Special Thanks\n\n[Chris Rhodes](https://github.com/iopred) - For the DiscordGo logo and tons of PRs.\n","funding_links":[],"categories":["第三方 APIs"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwmarrin%2FdiscordGo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwmarrin%2FdiscordGo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwmarrin%2FdiscordGo/lists"}