We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a4076 commit 4dd3b8cCopy full SHA for 4dd3b8c
1 file changed
index.js
@@ -155,9 +155,14 @@ class cDClient extends Client {
155
console.log("rest", rest);
156
console.log("token", rest.token);
157
for (let cmd of _new) {
158
- data = await rest.post(`/applications/${clientId}/commands`, {
159
- body: cmd,
160
- });
+ // The `cmd` variable is 100% correct - checked it
+ // Using built-in
+ data = await this.application.commands.create(cmd);
161
+
162
+ // Using REST
163
+ // data = await rest.post(`/applications/${clientId}/commands`, {
164
+ // body: cmd,
165
+ // });
166
if (logOptions.created)
167
console.log(`✔️ Created '${data.name}'`);
168
}
0 commit comments