reply to message with channel webhook
Is it possible to use Webhook.send() to reply to a message in the same channel? I followed the docs and it makes it look like you could add the reply parameter to the MessagePayload.create() and set the reference like described in this question in this forum https://discord.com/channels/222078108977594368/1171346142823460886.
This is the code I am using. The message sends to the right channel and everything but it doesn't show the reference like other replies.
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP[email protected] /Users/sr/Engrimoore/Beholder
└── [email protected]
-> % node -v
v18.18.2
webhooks can't reply to a message
:method: (static) MessagePayload.create()
Creates a MessagePayload from user-level arguments.
:interface: MessagePayloadOption
A possible payload option.
:interface: WebhookMessageCreateOptions
Options that can be passed into send.
as you can see there's no option for replying within a WebhookMessageCreateOptions
It also accepts a MessagePayload so I thought it might be possible but I'll have to go back to copying the prior content and appending with markdown