You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incoming: Incoming Webhooks can post messages to channels with a generated token
ChannelFollower: Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
Application: Application webhooks are webhooks used with Interactions
The method <TextBasedChannel>.createWebhook() returns an Incoming Webhook, but an .isIncoming() call is needed to apply correct typings.
The Webhook typing structure should have an Incoming default flag (like Cached flag in interactions) and could be changed internally for Interactions usage (or something similar like Types extend in a union).
I can assume the fix if this suggestion is accepted ✌️
Which package is this bug report for?
discord.js
Issue description
Actually, we have 3 types of webhooks :
The method
<TextBasedChannel>.createWebhook()
returns an Incoming Webhook, but an.isIncoming()
call is needed to apply correct typings.The Webhook typing structure should have an Incoming default flag (like Cached flag in interactions) and could be changed internally for Interactions usage (or something similar like Types extend in a union).
I can assume the fix if this suggestion is accepted ✌️
Code sample
Package version
main
Priority this issue should have
Low (slightly annoying)
The text was updated successfully, but these errors were encountered: