w
This commit is contained in:
parent
23db1d5c88
commit
2cdb406e1c
2 changed files with 22 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
let output = "";
|
||||
|
||||
async function main() {
|
||||
const auth = await authorize();
|
||||
const auth = await authorize().catch((e) => e);
|
||||
output = output + `auth: ${JSON.stringify(auth)}\n`;
|
||||
if (!auth) return (output += `failed to authenticate :'c`);
|
||||
|
||||
|
|
|
@ -11,7 +11,27 @@ export async function authorize() {
|
|||
response_type: "code",
|
||||
state: "",
|
||||
prompt: "none",
|
||||
scope: ["identify", "rpc.activities.write"],
|
||||
scope: [
|
||||
// "applications.builds.upload",
|
||||
// "applications.builds.read",
|
||||
// "applications.store.update",
|
||||
// "applications.entitlements",
|
||||
// "bot",
|
||||
"identify",
|
||||
// "connections",
|
||||
// "email",
|
||||
// "gdm.join",
|
||||
"guilds",
|
||||
// "guilds.join",
|
||||
// "guilds.members.read",
|
||||
// "messages.read",
|
||||
// "relationships.read",
|
||||
"rpc.activities.write",
|
||||
// "rpc.notifications.read",
|
||||
// "rpc.voice.write",
|
||||
"rpc.voice.read",
|
||||
// "webhook.incoming",
|
||||
],
|
||||
});
|
||||
|
||||
const response = await fetch("/api/token", {
|
||||
|
|
Loading…
Reference in a new issue