mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor: use optional chaining (#6757)
This commit is contained in:
@@ -177,7 +177,7 @@ class RequestHandler {
|
||||
}
|
||||
|
||||
let sublimitTimeout;
|
||||
if (res && res.headers) {
|
||||
if (res.headers) {
|
||||
const serverDate = res.headers.get('date');
|
||||
const limit = res.headers.get('x-ratelimit-limit');
|
||||
const remaining = res.headers.get('x-ratelimit-remaining');
|
||||
|
||||
Reference in New Issue
Block a user