Skip to content

Commit cdaaf68

Browse files
authored
Merge pull request AnIdiotsGuide#176 from thomasbrq/master
Fix const name
2 parents 1ed7387 + 95c5a1c commit cdaaf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

first-bot/a-basic-command-handler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ for (const file of commands) {
5454

5555
console.log(`Attempting to load command ${commandName}`);
5656
// Set the command to a collection
57-
client.commands.set(command.name, command);
57+
client.commands.set(commandName, command);
5858
}
5959
```
6060

0 commit comments

Comments
 (0)