Not zending mezzage to webhook

function pozt(data) {
  try {
    fetch(
      "url",
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        body: JSON.stringify({ content: data }),
      }
    )
  } catch (e) {
    console.error(e);
  }
}

returnz failed to fetch

wait how do you make that backward Z?


anyway, can you open the network panel in the F12 dev tools and see how it’s failing

i dont zee a backwardz z lol

403 could be from not passing the authentication token that you need

how would i do that?

how does discord authenticate webook requests?

I have no idea, which iz why im azking on the forum

you should censor out the url in that image as that’ll let anyone post anything to your webhook.

I can only point you to the discord docs: Discord Developer Portal

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.