Relative Content

Tag Archive for rubydiscord

Reccive Gateway Events Discordrb

How can I reccive gateway events and do something when for example the channel pins are updated using discordrb? https://discord.com/developers/docs/topics/gateway-events#receive-events

Retrive emoji URL discordrb (Ruby)

How would I retrive the url on an emoji on discord using discordrb such as: https://cdn.discordapp.com/emojis/1117212093725294593.png?

Unable to output correct hex color in Ruby using Discordrb

I have some code here that takes a hex value (clr) and converts it to a RGB value array using the Color Converter gem in Ruby to set a guild role using the discordrb library. The problem is that the color set differs from the hex value I specified. For example: If I input the hex colour #25107A I see it successfully outputs the integer value of: 3716122, but then the actual role colour that gets set in the client is #38b41a.