Apphook in Discord_bot

In Discord_bot component, https://github.com/devrev/pipedream-fork/blob/devrev/components/discord_bot/discord/sources/new-message/new-message.js
what interface.apphook means? It is not mentioned in docs. Also why it is importing discord-v2.app.js which is empty ?

Hi @gakshay

Good find! Apphooks are special interfaces for APIs that are “firehoses”. Slack is another example, where we only need to act on certain events but the Slack API is just a feed.

They’re not a very common API interface, the most common are polling or webhook based APIs.

We do not have documentation on these types yet.

But @danny might be able to answer your second question regarding the v2 migration of the Discord app.

Are you trying to contribute or build your own components? Happy to help!