Project

disrb

0.0
No release in over 3 years
Discord.rb (not to be confused with discordrb) is a Ruby library that allows you to interact only with the Discord API. The library is still in development, but really simple tasks can be done.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0.26.0
>= 1.79.0

Runtime

>= 2.26.0
>= 0.89.0
>= 2.13.3
 Project Readme

discord.rb indev

Licensed under the MIT license Gem Version project status: active main

Changelog | Documentation (currently in development)

W.I.P. Discord API wrapper written in Ruby for fun.

The test.rb file creates two commands "test" and "test2", that return "Hi" and "Hello World!" respectively, sets the bot's current activity to 'Watching if i work', and sets the presence to online since the program was started provided you provide the required data in env.rb.template and rename it to env.rb.

!DISCLAIMER! This is project is in development. Expect changes that might break your code at any time.

How to use this project

The documentation will contain information about the functions implemented in this project. Check it out here.

Most functions in this library return a Faraday::Response object. Check the Faraday documentation for info on how to use that object.

If you want to get the contents of the response, use the body instance method (example: [Faraday::Response object here].body). The contents will most likely be JSON. To convert it to a Ruby object, use JSON.parse([Faraday::Response object here].body).

When reading the documentation, there most likely will be a link to the relevant Discord Developer Documentation page. Please read that page as well, it will contain information that may help you.

Roadmap

  • Indev release (v0.1.0)
    • Basic Discord API wrapper
    • Full guild endpoint support
    • Full user endpoint support
    • Full application command endpoint support
    • Logger
    • Basic gateway support
    • RubyGem building and publishing
  • Alpha release (v0.2.0)
    • Add support for all Discord API endpoints (v0.2.0)
    • Add support for all Discord Gateway events and properly handle the connection (v0.1.5)
    • Add support for uploading files (v0.1.4)
    • Documentation (v0.1.3)
    • Full message resource support (v0.1.2)
    • Transition to Faraday for HTTP requests (v0.1.1)
  • Beta release (v0.3.0)
    • Component support and builder
    • Sharding support
    • Rate limit handling
    • Voice support
    • Add parameter validation
  • Stable release (v1.0.0)
    • Class-ification update (instead of returning the raw HTTP response, make them into classes to make responses easier to use)
    • Bugfixes, consistency and improvements