@discordjs/rest question
Hi everyone, I have this code right here
but for some reason, the
after
parameter is not being followed. I logged allBotGuilds[199 * (i + 1)]?.id
and its an actual discord server ID, so what exactly is the issue? Did I insert the parameter incorrectly?12 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.What endpoint are you trying to use? I don’t see any params in the actual docs for that route.
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
sorry for the ghost ping I sent the wrong URL
Ohh try the options after the userGuilds()
2nd param in get()
so
{before: null, after: ...}
?rest.get(routeHere, optionsHere)
The route you’re using has no params
not me forgetting how to place params 💀
before I mess something up again, I just wanna clarify the correct format
Keep in mind I have not used the rest package. But that does look correct.
Yea that did not work
ah, so it would look something like this then?
it worksssss!
thank you for relieving the pain of me trying to fix this 💀