mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(guild): VerificationLevels (#3873)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user