Sank6 / Discord-Bot-List

Just another botlist for discord
GNU General Public License v3.0
213 stars 185 forks source link

` // Custom webhook #568

Closed iHDxP closed 3 years ago

iHDxP commented 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

Originally posted by @iHDxP in https://github.com/Sank6/Discord-Bot-List/issues/567#issuecomment-884527265

Sank6 commented 3 years ago

https://discord.com/developers/docs/resources/webhook#execute-webhook