mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
fix(guild): VerificationLevels (#3873)
This commit is contained in:
parent
cd746f3069
commit
66e625c4c0
1 changed files with 1 additions and 1 deletions
|
|
@ -901,7 +901,7 @@ class Guild extends Base {
|
||||||
_data.verification_level =
|
_data.verification_level =
|
||||||
typeof data.verificationLevel === 'number'
|
typeof data.verificationLevel === 'number'
|
||||||
? Number(data.verificationLevel)
|
? Number(data.verificationLevel)
|
||||||
: ExplicitContentFilterLevels.indexOf(data.verificationLevel);
|
: VerificationLevels.indexOf(data.verificationLevel);
|
||||||
}
|
}
|
||||||
if (typeof data.afkChannel !== 'undefined') {
|
if (typeof data.afkChannel !== 'undefined') {
|
||||||
_data.afk_channel_id = this.client.channels.resolveID(data.afkChannel);
|
_data.afk_channel_id = this.client.channels.resolveID(data.afkChannel);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue