Skip to content
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

feat(Message|TextChannel): Inline replies #4874

Merged
merged 25 commits into from
Dec 8, 2020

Conversation

monbrey
Copy link
Member

@monbrey monbrey commented Oct 2, 2020

Ref: discord/discord-api-docs#2118

This implements the inline reply functionality, both for receiving and sending messages.
It now also steals merges the changes that Souji had made in #4870 to remove Message#reply and instead completely replaces it with inline reply functionality under the same name. It is therefore semver major

Changes

  • MessageOptions#replyTo: MessageResolvable added
  • MessageOptions#reply removed
  • Message#reply modified to use inline-reply functionality
  • APIMessage#resolveData updated to resolve replyTo parameters
  • Typings updated accordingly
  • Boilerplate, examples and tests updated thanks to @almostSouji

Status

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

  • This PR changes the library's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

src/structures/Message.js Outdated Show resolved Hide resolved
src/structures/Message.js Outdated Show resolved Hide resolved
@monbrey monbrey changed the title feat: inline replies [WIP] feat(Message|TextChannel}: Inline replies Oct 7, 2020
src/structures/Message.js Outdated Show resolved Hide resolved
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
@monbrey monbrey changed the title feat(Message|TextChannel}: Inline replies feat(Message|TextChannel): Inline replies Oct 7, 2020
@advaith1
Copy link
Contributor

advaith1 commented Oct 28, 2020

we should add a mention/ping option to mention the author of the original message (replied_user boolean in allowed_mentions, true by default)

the mention is no longer present at the start of the message content when replying with pinging

image

gif

README.md Show resolved Hide resolved
@oddyamill

This comment has been minimized.

@hackermondev

This comment has been minimized.

@kylerchin
Copy link
Contributor

Is this ready to be merged into master?

@monbrey
Copy link
Member Author

monbrey commented Nov 27, 2020

Is this ready to be merged into master?

No

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me! LGTM 👍

@NotSugden
Copy link
Contributor

the only use of the APIMessage#isUser getter is removed in this PR, it would make sense if this PR also removed that getter

@iCrawl iCrawl merged commit 60e5a0e into discordjs:master Dec 8, 2020
@hackermondev

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementation of new Replies functionality