-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MessageBuilder should be able to add/set custom fields for message #309
Comments
Hi, @meomay503 ! There is one method (addCustomField) already implemented and available in the In brief, the process of sending a message returns an ID, which can be used in order to obtain the messageExtender that allows the addition of custom fields and attachments. The described process can be done as follows:
The complete file for the piece of code above can be found in: https://github.com/RocketChat/Apps.RocketChat.Tester/blob/recipes/extending-messages/slashcommands/ExtendSlashcommand.ts |
Hi @matheusbsilva137, thank you for the hint. Well, your approach works and I tried it before for my use case. The problem is the latency between the moment the message is sent and the time it gets updated. |
Hi, @meomay503! We have performed some tests on the latency time using the About the API, it is currently possible to send messages with attachments with no editions, but it still does not support custom fields within messages. |
Thank you for the fantastic work @matheusbsilva137 ^^. I am waiting for your PR, I've taken a look and it looks good so far. |
In App-engine's IMessage interface, we have the field for storing custom fields but in the MessageBuilder, there is no way to add a custom field to the Message. Could you provide a method to add custom fields to the message?
The text was updated successfully, but these errors were encountered: