{"id":15562177,"url":"https://github.com/deanpcmad/discord_api","last_synced_at":"2026-02-14T03:35:55.186Z","repository":{"id":204558798,"uuid":"712136745","full_name":"deanpcmad/discord_api","owner":"deanpcmad","description":"Ruby library for the Discord HTTP API","archived":false,"fork":false,"pushed_at":"2024-10-28T18:36:20.000Z","size":36,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T02:01:30.985Z","etag":null,"topics":["discord","discord-api","ruby","rubygems"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/deanpcmad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":"deanpcmad","ko_fi":"deanpcmad"}},"created_at":"2023-10-30T21:36:43.000Z","updated_at":"2024-08-02T07:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"09f4fd0c-d8c4-49c5-9eba-cffa0287b43f","html_url":"https://github.com/deanpcmad/discord_api","commit_stats":null,"previous_names":["deanpcmad/discord_api"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/deanpcmad/discord_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanpcmad%2Fdiscord_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanpcmad%2Fdiscord_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanpcmad%2Fdiscord_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanpcmad%2Fdiscord_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deanpcmad","download_url":"https://codeload.github.com/deanpcmad/discord_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanpcmad%2Fdiscord_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29434166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T03:34:37.767Z","status":"ssl_error","status_checked_at":"2026-02-14T03:34:09.092Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-api","ruby","rubygems"],"created_at":"2024-10-02T16:12:09.200Z","updated_at":"2026-02-14T03:35:55.171Z","avatar_url":"https://github.com/deanpcmad.png","language":"Ruby","funding_links":["https://github.com/sponsors/deanpcmad","https://ko-fi.com/deanpcmad"],"categories":[],"sub_categories":[],"readme":"# Discord API\n\nThis is a Ruby library for the Discord HTTP API. **Currently in development**\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"discord_api\"\n```\n\n## Usage\n\n### Authentication\n\nFirstly you'll need to set either a user token or bot token. Some endpoints are only accssible with a bot token.\n\n```ruby\n# Set a user token\n@client = Discord::Client.new(user_access_token: \"\")\n\n# Or set a bot token\n@client = Discord::Client.new(bot_access_token: \"\")\n```\n\n### Users\n\n```ruby\n# Get the current user\n# Required scope: identify\n# Required scopes if you want the user's email: identify email\n@client.users.me\n\n# Get the user's guilds\n# Required scope: guilds\n@client.users.guilds\n```\n\n### Channels\n\nThese endpoints are only accessible using a bot token.\n\n```ruby\n# Retrieve a Channel\n@client.channels.retrieve(id: 123123)\n\n# Update a Channel's details\n# https://discord.com/developers/docs/resources/channel#modify-channel\n@client.channels.update(id: 123123, name: \"new-channel-name\")\n```\n\n### Messages\n\nThese endpoints are only accessible using a bot token.\n\n```ruby\n# List messages for a channel\n@client.messages.list(channel_id: 123123)\n\n# Get a message\n@client.messages.retrieve(channel_id: 123123, message_id: 123123)\n\n# Create a message\n# https://discord.com/developers/docs/resources/channel#create-message\n@client.messages.create(channel_id: 123123, content: \"Hello World\")\n\n# Update a message\n# https://discord.com/developers/docs/resources/channel#edit-message\n@client.messages.update(channel_id: 123123, message_id: 123123, content: \"Hello World\")\n\n# Delete a message\n@client.messages.delete(channel_id: 123123, message_id: 123123)\n\n# Bulk delete messages\n@client.messages.bulk_delete(channel_id: 123123, ids: [123123, 321321])\n```\n\n### Guilds/Servers\n\nThese endpoints are only accessible using a bot token.\n\n```ruby\n# Retrieve a Guild's details\n@client.guilds.retrieve(id: 123123)\n\n# Update a Guild's details\n# https://discord.com/developers/docs/resources/guild#modify-guild\n@client.guilds.update(id: 123123, name: \"new-guild-name\")\n\n# Retrieve a list of a Guild's channels\n@client.guilds.channels(guild: 123123)\n\n# Create a Guild channel\n# https://discord.com/developers/docs/resources/guild#create-guild-channel\n@client.guilds.create_channel(guild: 123123, name: \"new-channel-name\")\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/deanpcmad/discord_api.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanpcmad%2Fdiscord_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeanpcmad%2Fdiscord_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanpcmad%2Fdiscord_api/lists"}