Skip to content

Commit

Permalink
fix(Util): throw token invalid for fetching rec. shard amount (#4779)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Sep 4, 2020
1 parent aa25608 commit 77b6a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class Util {
})
.then(res => {
if (res.ok) return res.json();
if (res.status === 401) throw new DiscordError('TOKEN_INVALID');
throw res;
})
.then(data => data.shards * (1000 / guildsPerShard));
Expand Down

0 comments on commit 77b6a7d

Please sign in to comment.