Skip to content

Commit 3ce4d71

Browse files
authored
fix(docs): it was always info
1 parent 4a3c76a commit 3ce4d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/getting-started/CreatingListeners.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = class extends Listener {
2323
}
2424

2525
async run() {
26-
this.container.logger.log('The bot is up and running!');
26+
this.container.logger.info('The bot is up and running!');
2727
}
2828
};
2929
```
@@ -38,6 +38,6 @@ In our case, the ready events gives no information so we don't need any paramete
3838

3939
Every piece (listeners, commands etc) in sapphire has a `container` which can be accessed via
4040
`this.container`. It is this container that contains the logger, the client and other properties. Here we access the
41-
logger via `this.container.logger` and call its `log` method to print a nicely formatted message in the console.
41+
logger via `this.container.logger` and call its `info` method to print a nicely formatted message in the console.
4242

4343
If everything was done correctly, now, whenever you launch your bot, you will see a message in the console.

0 commit comments

Comments
 (0)