DIAdiscord.js - Imagine an app
Created by athene___ on 6/21/2024 in #djs-questions
Sychro problem
I'd like to know a little more about automatic rate limit management with Discord.js For example, if I make a function call to attempt to kick a guild member, and it throws due to a rate limit, I'd like this kick attempt NOT to be automatically re-executed after the retry after specified by Discord. I need to know when the kick has failed or not, so that I know whether to record it in a DB history or not. If it retries itself by "Magic", I'll end up having desynchro' between the history and the kicks performed. So I'd like to know how this automatic "retry" of Discord.js works. Does the simple fact of catching the exception raised by the kick command myself disable this auto retry? How does it work?
13 replies