There was an error while loading. Please reload this page.
1 parent 2cabd4f commit 5a7c41aCopy full SHA for 5a7c41a
coding-guides/tracking-used-invites.md
@@ -26,9 +26,9 @@ const invites = {};
26
// A pretty useful method to create a delay without blocking the whole script.
27
const wait = require('util').promisify(setTimeout);
28
29
-client.on('ready', () => {
+client.on('ready', async () => {
30
// "ready" isn't really ready. We need to wait a spell.
31
- wait(1000);
+ await wait(1000);
32
33
// Load all invites for all guilds and save them to the cache.
34
client.guilds.forEach(g => {
0 commit comments