@@ -137,7 +137,6 @@ class GuildMemberManager extends CachedManager {
137
137
) ;
138
138
}
139
139
140
-
141
140
fetch ( options ) {
142
141
if ( ! options || ( typeof options === 'object' && ! ( 'user' in options ) && ! ( 'query' in options ) ) ) {
143
142
if (
@@ -425,7 +424,7 @@ class GuildMemberManager extends CachedManager {
425
424
*/
426
425
fetchBruteforce ( options = { } ) {
427
426
// eslint-disable-next-line
428
- let dictionary = 'abcdefghijklmnopqrstuvwxyz0123456789 !"#$%&\'()*+,-./:;<=>?@[]^_`{|}~ ' . split ( '' ) ;
427
+ let dictionary = ' !"#$%&\'()*+,-./0123456789 :;<=>?@[]^_`abcdefghijklmnopqrstuvwxyz {|}~' . split ( '' ) ;
429
428
let limit = 100 ;
430
429
let delay = 500 ;
431
430
if ( options ?. dictionary ) dictionary = options ?. dictionary ;
@@ -440,6 +439,7 @@ class GuildMemberManager extends CachedManager {
440
439
`[WARNING] GuildMemberManager#fetchBruteforce: delay is less than 500ms, this may cause rate limits.` ,
441
440
) ;
442
441
}
442
+
443
443
// eslint-disable-next-line no-async-promise-executor
444
444
return new Promise ( async ( resolve , reject ) => {
445
445
const fetchRec = async ( query ) => {
@@ -541,8 +541,7 @@ class GuildMemberManager extends CachedManager {
541
541
const timeout = setTimeout ( ( ) => {
542
542
this . client . removeListener ( Events . GUILD_MEMBER_LIST_UPDATE , handler ) ;
543
543
this . client . decrementMaxListeners ( ) ;
544
- console . warn ( 'GUILD_MEMBERS_TIMEOUT' ) ;
545
- console . warn ( 'Members didn\'t arrive in time. Increase delay time! For now, some members are skipped.' ) ;
544
+ reject ( new Error ( 'GUILD_MEMBERS_TIMEOUT' ) ) ;
546
545
} , time )
547
546
. unref ( ) ;
548
547
this . client . incrementMaxListeners ( ) ;
@@ -645,7 +644,8 @@ class GuildMemberManager extends CachedManager {
645
644
const timeout = setTimeout ( ( ) => {
646
645
this . client . removeListener ( Events . GUILD_MEMBERS_CHUNK , handler ) ;
647
646
this . client . decrementMaxListeners ( ) ;
648
- reject ( new Error ( 'GUILD_MEMBERS_TIMEOUT' ) ) ;
647
+ console . warn ( 'GUILD_MEMBERS_TIMEOUT' ) ;
648
+ console . warn ( 'Members didn\'t arrive in time. Increase delay time! For now, some members are skipped.' ) ;
649
649
} , time )
650
650
. unref ( ) ;
651
651
this . client . incrementMaxListeners ( ) ;
0 commit comments