itsjusttriz
itsjusttriz
DIAdiscord.js - Imagine an app
Created by itsjusttriz on 9/3/2023 in #djs-questions
Webhook not sending
This is compiled Typescript, but im just lost on where the issue is... my console.log()s arent passing the hook.send() and there's no error being caught or anything?
try {
console.log('before send')
await hook.send({
username: `Twitch Reminder`,
embeds: [embed],
}).catch(e => {
console.log(e)
});
console.log('after send')
shouldSendResponse = true;
Logger_1.logger.sysDebug.success(`Sent Reminder to DiscordWebhook with the following ID: (${hook.id})`);
}
catch (error) {
Logger_1.logger.sysDebug.error(error);
shouldSendResponse = true;
}
try {
console.log('before send')
await hook.send({
username: `Twitch Reminder`,
embeds: [embed],
}).catch(e => {
console.log(e)
});
console.log('after send')
shouldSendResponse = true;
Logger_1.logger.sysDebug.success(`Sent Reminder to DiscordWebhook with the following ID: (${hook.id})`);
}
catch (error) {
Logger_1.logger.sysDebug.error(error);
shouldSendResponse = true;
}
12 replies