GithubHelp home page GithubHelp logo

Buttons about discordrb HOT 4 CLOSED

shardlab avatar shardlab commented on August 23, 2024
Buttons

from discordrb.

Comments (4)

swarley avatar swarley commented on August 23, 2024 1

https://drb.shardlab.dev/main/Discordrb/EventContainer.html#button-instance_method
https://drb.shardlab.dev/main/Discordrb/Events/ButtonEvent.html
And message sending methods have access to a yielded View, documentation for which can be found here https://drb.shardlab.dev/main/Discordrb/Webhooks/View.html
and examples here https://github.com/shardlab/discordrb/blob/main/examples/slash_commands.rb#L72-L86
https://github.com/shardlab/discordrb/blob/main/examples/slash_commands.rb#L97-L106

from discordrb.

MHatfull avatar MHatfull commented on August 23, 2024

I see this has been moved to Done, could you link to the relevant documentation please?

from discordrb.

MHatfull avatar MHatfull commented on August 23, 2024

it looks like this code isn't in the gem on rubygems, what's the best way to install the gem with this functionality? Should I install directly from the github main branch or is that not considered stable?

adding gem 'discordrb', github: "shardlab/discordrb", branch: "main" is how I've done this for anyone who's interested.

from discordrb.

Daniel-Worrall avatar Daniel-Worrall commented on August 23, 2024

If you want to run the latest code, we recommend using bundler with the following line in the Gemfile:
gem 'discordrb', github: 'shardlab/discordrb', branch: 'main'

Since the gem is so outdated, we recommend this until we have a release ready to go. There are bugs you can encounter with the latest gem since there have been updates on discords side but have been fixed on main.

Also be sure to check out the discord for the most up to date information and discussions

from discordrb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.