Check ratelimit discord js
snippet in javascript

Check ratelimit discord js

user6558

<client>.on('rateLimit', (info) => {
  console.log(`Rate limit hit ${info.timeDifference ? info.timeDifference : info.timeout ? info.timeout: 'Unknown timeout '}`)
})