-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Can't edit message sent through Webhook #5377
Comments
#5223 is not merged yet, and even if it will get merged, it will most likely not land in any release before v13 |
My repository search didn't bring that up, but I'm glad to know it's coming. |
@almostSouji @tipakA @millette I am a Full-Stack Software Engineer from the SF bay area. This is my first time contributing to open source and I am very excited to play my part. I can work on this enhancement. I have everything set up that includes discord bot, forked repo, and all that stuff. Any tips for me are most welcome! |
But... the enhancement is already created. Just not merged, and not released |
Got it! @tipakA Can I have some other issue to work with? A small bug or maybe a feature enhancement |
I just tested in master and Message.edit still throws the obscure |
webhooks aren't cached so it wouldn't know the wwbhook's token |
@Protected Well, from where exactly would library take info necessary to operate a webhook? Sure, if the message you are trying to edit was sent by a webhook, it will have |
Please describe the problem you are having in as much detail as possible:
According to the documentation, Webhook.send returns an instance of Message, which has an edit method. However, when I attempt to use the edit method, the following error is thrown:
The API allows editing webhook messages: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
And the Message object knows its webhookID, so the intuitive behavior here would be for the edit to be sent through the webhook.
Include a reproducible code sample here, if possible:
Further details:
The text was updated successfully, but these errors were encountered: