Skip to content

Commit e25e32a

Browse files
author
iAmZiNc
authored
Add some semicolons
I don't use em, but the guide does
1 parent f5ba858 commit e25e32a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

understanding/sharding.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ There are additional difficulties when sharding a bot that add complexity to you
2424
*/
2525

2626
// Include discord.js ShardingManger
27-
const { ShardingManager } = require('discord.js')
27+
const { ShardingManager } = require('discord.js');
2828

2929
// Create your ShardingManger instance
3030
const manager = new ShardingManager('./YOUR_BOT_FILE_NAME.js', {
3131
// for ShardingManager options see:
3232
// https://discord.js.org/#/docs/main/stable/class/ShardingManager
3333
totalShards: 'auto',
3434
token: 'YOUR_TOKEN_GOES_HERE'
35-
})
35+
});
3636

3737
// Spawn your shards
38-
manager.spawn()
38+
manager.spawn();
3939

4040
// Emitted when a shard is created
41-
manager.on('shardCreate', (shard) => console.log(`Shard ${shard.id} launched`))
41+
manager.on('shardCreate', (shard) => console.log(`Shard ${shard.id} launched`));
4242
```
4343

0 commit comments

Comments
 (0)