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