{"id":27953923,"url":"https://github.com/goscord/goscord","last_synced_at":"2026-03-08T23:32:23.424Z","repository":{"id":44332525,"uuid":"303221424","full_name":"Goscord/goscord","owner":"Goscord","description":"A Discord API wrapper written in Golang.","archived":false,"fork":false,"pushed_at":"2024-11-20T23:26:39.000Z","size":969,"stargazers_count":75,"open_issues_count":2,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T17:15:25.853Z","etag":null,"topics":["bot","discord","discord-api","discord-bot","discord-wrapper","discordapi","golang","udp","websocket","ws"],"latest_commit_sha":null,"homepage":"https://goscord.dev","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/Goscord.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-11T22:08:35.000Z","updated_at":"2025-04-01T12:40:25.000Z","dependencies_parsed_at":"2024-06-18T21:29:30.931Z","dependency_job_id":"30d11760-a49d-45b1-bb4e-b2b91317e59a","html_url":"https://github.com/Goscord/goscord","commit_stats":{"total_commits":323,"total_committers":11,"mean_commits":"29.363636363636363","dds":0.5882352941176471,"last_synced_commit":"9e75793b051a82bbfddaeb09a2f225802fd89c38"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goscord%2Fgoscord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goscord%2Fgoscord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goscord%2Fgoscord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goscord%2Fgoscord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Goscord","download_url":"https://codeload.github.com/Goscord/goscord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922315,"owners_count":21825640,"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":["bot","discord","discord-api","discord-bot","discord-wrapper","discordapi","golang","udp","websocket","ws"],"created_at":"2025-05-07T17:15:31.110Z","updated_at":"2026-03-08T23:32:23.391Z","avatar_url":"https://github.com/Goscord.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://goscord.dev\"\u003e\n    \u003cimg src=\"./resource/logo.png\" height=\"128\"\u003e\n    \u003ch1 align=\"center\"\u003eGoscord\u003c/h1\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eGoscord is a package for \u003ca href=\"https://golang.org\"\u003eGolang\u003c/a\u003e that provides high level bindings to the \u003ca href=\"https://discord.com\"\u003eDiscord\u003c/a\u003e API.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://discord.gg/6Np8sbyHXt\"\u003e\n    \u003cimg src=\"https://badgen.net/badge/icon/Discord?icon=discord\u0026label\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://goscord.dev\"\u003e\n    \u003cimg src=\"https://badgen.net/badge/icon/Website?icon=chrome\u0026label\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Getting Started\n### Installing\n```sh\n# Init the module:\ngo mod init \u003curl\u003e \n\n# Install Goscord:\ngo get -u github.com/Goscord/goscord\n```\n\n### Usage\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\npackage main\n\nimport (\n    \"fmt\"\n\n\n    \"github.com/Goscord/goscord/goscord\"\n    \"github.com/Goscord/goscord/goscord/discord\"\n    \"github.com/Goscord/goscord/goscord/gateway\"\n    \"github.com/Goscord/goscord/goscord/gateway/event\"\n)\n\nvar client *gateway.Session\n\nfunc main() {\n    fmt.Println(\"Starting...\")\n\n    client := goscord.New(\u0026gateway.Options{\n        Token:   \"token\",\n        Intents: gateway.IntentGuildMessages,\n    })\n\n    client.On(event.EventReady, func() {\n        fmt.Println(\"Logged in as \" + client.Me().Tag())\n    })\n\n    client.On(event.EventMessageCreate, func(msg *discord.Message) {\n        if msg.Content == \"ping\" {\n            client.Channel.SendMessage(msg.ChannelId, \"Pong ! 🏓\")\n        }\n    })\n\n    client.Login()\n\n    select {}\n}\n```\n\nSee [documentation](https://goscord.dev/documentation) for more detailed information.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoscord%2Fgoscord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoscord%2Fgoscord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoscord%2Fgoscord/lists"}