{"id":34230254,"url":"https://github.com/godiscordlib/godiscord","last_synced_at":"2026-03-11T07:33:31.578Z","repository":{"id":275214969,"uuid":"924683975","full_name":"godiscordlib/godiscord","owner":"godiscordlib","description":"🐭 Upcomming Go Discord library","archived":false,"fork":false,"pushed_at":"2026-03-01T21:57:39.000Z","size":6547,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T01:27:53.621Z","etag":null,"topics":["discord","discord-bot","discord-go","discord-golang","discord-lib","discord-library","discordbot","go","go-discord","go-lib","go-library","godiscord","golang"],"latest_commit_sha":null,"homepage":"https://godiscord.foo.ng","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/godiscordlib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-30T13:16:26.000Z","updated_at":"2026-03-01T21:57:43.000Z","dependencies_parsed_at":"2025-04-20T19:20:42.385Z","dependency_job_id":"ed87d008-9ee1-4fcb-9a95-dd92afbf4cb1","html_url":"https://github.com/godiscordlib/godiscord","commit_stats":null,"previous_names":["ayn0nyme/godiscord","godiscordlib/godiscord"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/godiscordlib/godiscord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godiscordlib%2Fgodiscord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godiscordlib%2Fgodiscord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godiscordlib%2Fgodiscord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godiscordlib%2Fgodiscord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godiscordlib","download_url":"https://codeload.github.com/godiscordlib/godiscord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godiscordlib%2Fgodiscord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-bot","discord-go","discord-golang","discord-lib","discord-library","discordbot","go","go-discord","go-lib","go-library","godiscord","golang"],"created_at":"2025-12-16T01:02:05.973Z","updated_at":"2026-03-11T07:33:31.570Z","avatar_url":"https://github.com/godiscordlib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ Project still under construction, bugs may occur.\n\n\u003cp align=\"center\" style=\"margin-bottom: 0px !important;\"\u003e\n  \u003cimg src=\"./www/public/godiscord.webp\" width=\"144\" height=\"144\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\" style=\"margin-top: 0px;\"\u003egodiscord\u003c/h1\u003e\n\n`godiscord` is a lightweight library for interacting with the Discord API in Go, inspired by [discord.js](https://discord.js.org). It provides a simple and intuitive interface to create powerful and performant Discord bots in Go.\n\n## 📦 Installation\n\n```bash\ngo get github.com/godiscordlib/godiscord/\n```\n\n## 🧑‍💻 Example usage\n\nHere is a complete example of a Discord bot in Go using `godiscord`:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t_ \"github.com/joho/godotenv/autoload\"\n\t\"github.com/godiscordlib/godiscord/pkg/classes\"\n\t\"github.com/godiscordlib/godiscord/pkg/enums\"\n\t\"github.com/godiscordlib/godiscord/pkg/slash\"\n\t\"github.com/godiscordlib/godiscord/pkg/new\"\n)\n\nfunc main() {\n\tClient := new.Client(\n\t\tos.Getenv(\"DISCORD_TOKEN\"),\n\t\tenums.GatewayIntent.Guilds,\n\t\tenums.GatewayIntent.GuildMembers,\n\t\tenums.GatewayIntent.GuildMessages,\n\t\tenums.GatewayIntent.GuildModeration,\n\t\tenums.GatewayIntent.MessageContent,\n\t)\n\n\tslash.RegisterGuildCommands(\"1375914465064915144\", []classes.SlashCommandData{\n\t\t{\n\t\t\tName:        \"ping\",\n\t\t\tDescription: \"Pong! Get the ping of the bot\",\n\t\t\tType:        enums.InteractionType.ChatInput,\n\t\t},\n\t}, \"1373794354677813290\")\n\n\tClient.On(\"READY\", func(args ...any) {\n\t\tfmt.Println(\"READY:\", args[0].(*classes.Client).User.Username)\n\t\tClient.SetPresence(classes.PresenceUpdate{\n\t\t\tActivities: []classes.Activity{\n\t\t\t\tclasses.Activity{\n\t\t\t\t\tName: \"godiscord\",\n\t\t\t\t\tType: enums.ActivityType.Streaming,\n\t\t\t\t\tURL:  \"https://twitch.tv/godiscord\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tStatus: \"dnd\",\n\t\t\tAFK:    false,\n\t\t})\n\t})\n\n\tClient.On(\"INTERACTION_CREATE\", func(args ...any) {\n\t\tinteraction := args[0].(classes.BaseInteraction)\n\t\tif interaction.GetName() == \"ping\" {\n\t\t\tinteraction.Reply(classes.MessageData{\n\t\t\t\tEmbeds: []classes.Embed{\n\t\t\t\t\tnew.Embed().SetDescription(fmt.Sprintf(\"🏓 **%d**ms\", Client.GetWSPing())).SetColor(\"00ADD8\"),\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\t})\n\n\tClient.Connect()\n}\n\n\n```\n\n## 🛠️ Features\n\n- **Connect to Discord** using a bot token.\n- **Message handling**: send and receive messages.\n- **Webhooks**, **embeds**, and more to come.\n\n## 🧑‍💻 Contribute\n\n- First `git clone https://github.com/AYn0nyme/godiscord`\n- Then `go mod tidy`\n- And you're good to **Go** 😄\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodiscordlib%2Fgodiscord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodiscordlib%2Fgodiscord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodiscordlib%2Fgodiscord/lists"}