channel.createWebhook() returning Request Aborted
I can't seem to understand why this is happening.
I'm trying to create a channel webhooi and it thinks about it for 30s then outputs this error:
I'm trying to create a channel webhooi and it thinks about it for 30s then outputs this error:
RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\client.js:1391:44)
at abort (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\api\abort-signal.js:9:10)
at self.<computed> (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\api\abort-signal.js:30:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
at EventTarget.dispatchEvent (node:internal/event_target:742:26)
at abortSignal (node:internal/abort_controller:369:10)
at AbortController.abort (node:internal/abort_controller:391:5)
at Timeout.<anonymous> (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\@discordjs\rest\dist\index.js:637:47)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
code: 'UND_ERR_ABORTED'
}RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\client.js:1391:44)
at abort (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\api\abort-signal.js:9:10)
at self.<computed> (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\undici\lib\api\abort-signal.js:30:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
at EventTarget.dispatchEvent (node:internal/event_target:742:26)
at abortSignal (node:internal/abort_controller:369:10)
at AbortController.abort (node:internal/abort_controller:391:5)
at Timeout.<anonymous> (C:\Users\Andrew\Documents\GitHub\thp-services\node_modules\@discordjs\rest\dist\index.js:637:47)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
code: 'UND_ERR_ABORTED'
}try {
console.log(13);
webhook = await interaction.channel.createWebhook({ name: `${category.toLowerCase()} (${type.toLowerCase()})`, avatar: interaction.client.user.avatarURL() });
console.log(webhook);
}try {
console.log(13);
webhook = await interaction.channel.createWebhook({ name: `${category.toLowerCase()} (${type.toLowerCase()})`, avatar: interaction.client.user.avatarURL() });
console.log(webhook);
}