webhookUpdate event not received
I seem to be unable to receive the webhookUpdate event
https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-webhookUpdate
My client intents have
Discord.IntentsBitField.Flags.GuildWebhooks
listed and I'm listing all received events. webhookUpdate
is not one of them4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
[email protected]
node v17.8.0
If you'd like to take a look at the code
The client is initialized here
https://github.com/Larsundso/Ayako-v1.6/blob/main/src/BaseClient/Client.ts
The events are being listened to here
https://github.com/Larsundso/Ayako-v1.6/blob/72e8a719fd62c458d6ae2326eb72097ad6eba570/src/index.ts#L35
The absence of webhookUpdate is logged here
https://github.com/Larsundso/Ayako-v1.6/blob/main/src/Events/baseEventHandler.ts
on line 4 as
console.log(eventName)
indeed i have
every event received is re-directed to baseEventHandler.ts
as you can see here
the function getEvents
returns a list of events to listen to, webhookUpdate
being one of them, i've checked
i.e. the listener is registered like this client.on('webhookUpdate', (...args) => eventHandler(eventName, args));
yet no such event appears when console logging all received eventsthis is what
getEvents()
returns4th last line has webhookUpdate
i've gone ahead and and looked into d.js to find where the event was emitted. After logging if the event is even emitted by the client (which it is) and reverting my changes in it, it suddenly started working
no clue what the problem was