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 them
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Lolo
LoloOP2y ago
[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
client.ch.getEvents().forEach(async (path) => {
const eventName = path.replace('.js', '').split(/\/+/).pop();
if (!eventName) return;
console.log(eventName);

const eventHandler = (await import('./Events/baseEventHandler.js')).default;

if (eventName === 'ready') client.once(eventName, (...args) => eventHandler(eventName, args));
else client.on(eventName, (...args) => eventHandler(eventName, args));
});
client.ch.getEvents().forEach(async (path) => {
const eventName = path.replace('.js', '').split(/\/+/).pop();
if (!eventName) return;
console.log(eventName);

const eventHandler = (await import('./Events/baseEventHandler.js')).default;

if (eventName === 'ready') client.once(eventName, (...args) => eventHandler(eventName, args));
else client.on(eventName, (...args) => eventHandler(eventName, args));
});
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 events
Lolo
LoloOP2y ago
this is what getEvents() returns
Lolo
LoloOP2y ago
4th 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 Shrug
Want results from more Discord servers?
Add your server