#discord js still doesn t do oauth You

1 messages · Page 1 of 1 (latest)

solid perch
#

With the module I still have to implement the rate limit handler myself, right?

tribal ferry
#

I don't think so

solid perch
#

Interesting

#

Ah, you are talking about this, don't you?

const { REST } = require('discord.js');

tribal ferry
#

Yeah

solid perch
#

The discord.js REST module, and not some node.js REST module

#

Thanks, makes sense

tribal ferry
#

Yup

solid perch
#

That helps me a lot. Thanks once again and have a nice day ❤️

#
TypeError: REST is not a constructor
const { Client, Intents, Permissions, REST } = require("discord.js")

const rest = new REST({ version: "10" }).setToken("token")
#

I get this error

#

And I'm not sure what the version and token are about

#

The REST module seems to not exist

tribal ferry
#

Hmmmm what version?

#

Of discord.js

solid perch
#

It was discord.js@13.8.1. I just updated it. Let me check if it helps

#

Same thing

#

When I console.log(REST) it says undefined

#

Wait, I need to update to v14 🤦‍♂️