-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
Implement inline replies feature #1408
Conversation
src/main/java/net/dv8tion/jda/internal/requests/restaction/MessageActionImpl.java
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
* <br>This is identical to {@code message.getChannel().sendFile(data, name, options).reference(message)}. | ||
* You can use {@link MessageAction#mentionRepliedUser(boolean) mentionRepliedUser(false)} to not mention the author of the message. | ||
* | ||
* <p>For further info, see {@link MessageChannel#sendFile(File, net.dv8tion.jda.api.utils.AttachmentOption...)} and {@link MessageAction#reference(Message)}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this link (and others)
Not every mention is included in the content so this is necessary Inline replies use mentions which are not in the content, this would fail only when the guild is loaded (due to our handling)
This comment has been minimized.
This comment has been minimized.
{ | ||
obj.put("allowed_mentions", getAllowedMentionsObj()); | ||
obj.put("message_reference", DataObject.empty() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested this. Not sure is that an issue or not, but replying is not working in case of just sending a file without any other message content.
In this case rest action ignores this payload_json
as it thinks it's empty so message_reference
never sent to the Discord with a file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been fixed
Pull Request Etiquette
Changes
Closes Issue: NaN
Description
discord/discord-api-docs#2118