fyrebirdd
DIAdiscord.js - Imagine an app
•Created by fyrebirdd on 3/19/2024 in #djs-questions
401 error on get request
I'm trying to get a list of all of my guild application commands for this bot but I'm getting a 401 error on this rest request and i haven't the slightest idea why.
Code:
Error:
I'm loading the environment variables using dotenv (which I've confirmed loads them).
I've tried regenerating the token and giving my bot application-commands scope in OAuth but neither worked.
I'm using node v21.5.0 and djs v14.14.1.
Probably an easy answer, but i appreciate any guidance you can give, I'm quite new to this bot stuff :D
8 replies