There was an error while loading. Please reload this page.
2 parents 1ed7387 + 95c5a1c commit cdaaf68Copy full SHA for cdaaf68
first-bot/a-basic-command-handler.md
@@ -54,7 +54,7 @@ for (const file of commands) {
54
55
console.log(`Attempting to load command ${commandName}`);
56
// Set the command to a collection
57
- client.commands.set(command.name, command);
+ client.commands.set(commandName, command);
58
}
59
```
60
0 commit comments