-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
you can't pin a message sent by webhook #4830
Comments
Webhook#send returns a discord.js Message instance, which has the pin message For now you can work around this by fetching a Webhook instance from We can reproduce this in our resource webhook project as well. https://github.com/discordjs/resource-webhooks/blob/main/src/index.ts#L73-L77 This is neither reflected in typings nor documented, typings show a Message instance, documentation suggests implementation of Webhook#send which also documents Message |
Please keep this issue open, the typings are wrong and what the inheritance suggests documentation wise isn't intuitive either. |
Please describe the problem you are having in as much detail as possible:
you can't pin a message sent by webhook
Include a reproducible code sample here, if possible:
Further details:
Relevant client options:
The text was updated successfully, but these errors were encountered: