Closed iHDxP closed 3 years ago
// Custom webhook if (bot.webhook) { fetch(bot.webhook, { method: "POST", body: JSON.stringify({ type: "like", bot: req.params.id, user: req.user.id, timestamp: new Date() }), headers: { 'Content-Type': 'application/json' } }) }
what do i need to change here to let custom webhook send like info the the certain channel .
JSON.stringify idk what to de here please help
JSON.stringify
Originally posted by @iHDxP in https://github.com/Sank6/Discord-Bot-List/issues/567#issuecomment-884527265
https://discord.com/developers/docs/resources/webhook#execute-webhook
// Custom webhook if (bot.webhook) { fetch(bot.webhook, { method: "POST", body: JSON.stringify({ type: "like", bot: req.params.id, user: req.user.id, timestamp: new Date() }), headers: { 'Content-Type': 'application/json' } }) }
what do i need to change here to let custom webhook send like info the the certain channel .
JSON.stringify
idk what to de here please helpOriginally posted by @iHDxP in https://github.com/Sank6/Discord-Bot-List/issues/567#issuecomment-884527265