cdub
cdub
DIAdiscord.js - Imagine an app
Created by cdub on 1/10/2024 in #djs-questions
Not seeing routes on docs
Hi, The docs and guide use this piece of code for registering slash commands:
await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
Yet the docs have no class Routes, and my IDE (Webstorm) keeps flagging it as an unknown type. Am I missing something?
8 replies