API linked texts / texts that contain "hover" information #6243
Unanswered
ap0sentada
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
it would be useful to have texts that were connected to an external api, which would keep the text updated with special information.
this text would work like timestamps for example, receiving two pieces of information, label and description.
I think of two ways to make this work.
1 - next to the message object that we send the api, we add the "highlight text" parameter, which is an object containing 3 pieces of information: the initial label, the initial description and the link for the api to be able to make calls, updating this message every X seconds/minutes. the api must return the object containing the new description and label information, and thus, discord updates the message without editing it.
2 - next to the message object that we send the api, we add the "highlight text" parameter, which is an object containing 2 pieces of information: the initial label, the initial description. this information returns a connection ID, which can be used to update this message by making a new request to the api (almost like interactions)
in the sexexample below, we follow the object:
this suggestion consists of texts that may contain other informations, and a text that is updated without having to edit the message.
about the part referring specifically to the hover text, we can use a special format like:
hello! <h:9 players:9 players playing the game right now>
Beta Was this translation helpful? Give feedback.
All reactions