discordFetch
Script
v1
Fork
1
2
3
4
5
6
7
8
9
10
import
{
fetchJSON
}
from
"https://esm.town/v/stevekrouse/fetchJSON"
;
export
let
discordFetch
=
(
token
,
route
)
=>
fetchJSON
(
`https://discord.com/api/
${
route
}
`
,
{
headers
:
{
"Authorization"
:
`Bot
${
token
}
`
,
}
,
}
)