Skip to content

Commit 5a7c41a

Browse files
eslachancegitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 2cabd4f commit 5a7c41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coding-guides/tracking-used-invites.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ const invites = {};
2626
// A pretty useful method to create a delay without blocking the whole script.
2727
const wait = require('util').promisify(setTimeout);
2828

29-
client.on('ready', () => {
29+
client.on('ready', async () => {
3030
// "ready" isn't really ready. We need to wait a spell.
31-
wait(1000);
31+
await wait(1000);
3232

3333
// Load all invites for all guilds and save them to the cache.
3434
client.guilds.forEach(g => {

0 commit comments

Comments
 (0)