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

Message Replies #5233

Closed
YodaLightsabr opened this issue Jan 20, 2021 · 4 comments
Closed

Message Replies #5233

YodaLightsabr opened this issue Jan 20, 2021 · 4 comments

Comments

@YodaLightsabr
Copy link

Is your feature request related to a problem? Please describe.
Users can reply to messages, and there is a .reference property on the message object, to see what message it is a reply to. However, there is no way to send a reply to a message (other than the .reply() method, which is pretty much useless. Even though it is built into the Discord API, at the Create Message endpoint (message_reference field), I can't find it anywhere in the Discord.js docs.

Describe the ideal solution
A way to reply to messages built into the MessageOptions typedef. Here is the code that I worked out using client.api:

client.api.channels[message.channel.id].messages.post({
   data: {
      "content": "This is a reply!",
      "tts": false,
      message_reference: {
         message_id: message.id,
         guild_id: message.guild.id,
         channel_id: message.channel.id
      }
   }
})

Describe alternatives you've considered
Making a direct request to the Discord API.

Additional context
Here's a screenshot of the result:
image

@monbrey
Copy link
Member

monbrey commented Jan 20, 2021

Message.reply() has been repurposed for this on the master branch, and it's also possible via TextChannel.send() MessageOptions as you suggested.

It will be released into the stable version with v13

@xiBread
Copy link
Contributor

xiBread commented Jan 20, 2021

Inline replies will be added in v13. The PR for replies (#4874) was already merged into the master branch, so you can install directly from there you want the feature early.

@YodaLightsabr
Copy link
Author

Oh okay, thanks.

@almostSouji
Copy link
Member

Discord ban appeals do not belong on GitHub. The only thing this might net you is removal from the repository.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants