Update Client.js
This commit is contained in:
parent
4e909fd889
commit
b19c7bc083
@ -545,9 +545,10 @@ class Client extends BaseClient {
|
||||
this.emit(Events.DEBUG, `[Invite > Guild ${i.guild?.id}] Joined`);
|
||||
// Guild
|
||||
if (i.guild?.id) {
|
||||
if (options.bypassOnboarding) {
|
||||
const onboardingData = await this.api.guilds[i.guild?.id].onboarding.get();
|
||||
// Onboarding
|
||||
if (onboardingData.enabled && options.bypassOnboarding) {
|
||||
if (onboardingData.enabled) {
|
||||
const prompts = onboardingData.prompts.filter(o => o.in_onboarding);
|
||||
if (prompts.length) {
|
||||
const onboarding_prompts_seen = {};
|
||||
@ -574,6 +575,7 @@ class Client extends BaseClient {
|
||||
this.emit(Events.DEBUG, `[Invite > Guild ${i.guild?.id}] Bypassed onboarding`);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Read rule
|
||||
if (data.show_verification_form && options.bypassVerify) {
|
||||
// Check Guild
|
||||
|
Loading…
Reference in New Issue
Block a user