Buttons on Discord Webhook messages

I have a roblox to discord log system, but I want to know if it’s possible to add buttons to the message, and make those buttons do stuff in the game

Not quite, but a theory can be proven. HTTP on Roblox exists, so it is possible, right? Well, not that fast. You are only limited to GET and POST requests. You don’t really run a server on Roblox; you can interact with an external one and fetch data from it (only text), but you can’t make a server out of Roblox, and this is for a good reason. If you want communication with your interactive Discord bot, you would probably want to make an HTTP request every N seconds to fetch data and updates. This is not quite how the modern internet works; as far as I know, web sockets are not a thing here. If you don’t know what that is, it’s simply a protocol for two-way communication. It works differently, but you can imitate that by simply sending GET requests to fetch data, but that can get expensive as your game grows, so be ready for that.

Another theory I have is that you can implement it with data stores; this way, you eliminate the need to send any HTTP requests from the Roblox server to yours to fetch data. You can simply use Roblox’s Open Cloud API, make a key, add permissions for datastores, use that key, and simply update some datastores whenever an event should happen. The best I can think of is just adding a separate field in the player’s data and fetching from that. The problem of making requests is still here, but this time we are thinking outside the box and letting Roblox’s servers handle it.

The simple answer to your question is yes, it is possible, but very complex and expensive to do. The real answer would be no. If anyone wants to add anything or correct me, feel free to do so.

1 Like

Like @iceeburrs, said it’s possible to this but “very complex and expensive to do”.

But, you could possibly try and work around Discord <~> Roblox Connection and instead do a

Roblox ~> Discord ~> Trello ~> Roblox
Depending on what you’re doing*

This would pretty much be sending and receiving text only, for exmaple.

1. You log a activity of the player that has been on for 1 hour and you send it to Discord as an embed
2. A Discord bot adds 2 Buttons that say Accept and Ignore.
3. When clicked it would create a card in a trello board say whether or not you accepted or ignored it.
4. This then can be received by the roblox using TrelloAPI and you could do something with it :man_shrugging:

But, this is still a complex task to do, and it might not be worth it.
This is a list of things you’ll need to make this happen.

  • TrelloAPI and Knowledge on how to use it
  • Knowledge of how to use HTTPService
  • Discord Bot to handle adding buttons and button interactions