fix(guild): VerificationLevels (#3873)

This commit is contained in:
Jisagi
2020-03-01 21:28:03 +01:00
committed by GitHub
parent cd746f3069
commit 66e625c4c0

View File

@@ -901,7 +901,7 @@ class Guild extends Base {
_data.verification_level =
typeof data.verificationLevel === 'number'
? Number(data.verificationLevel)
: ExplicitContentFilterLevels.indexOf(data.verificationLevel);
: VerificationLevels.indexOf(data.verificationLevel);
}
if (typeof data.afkChannel !== 'undefined') {
_data.afk_channel_id = this.client.channels.resolveID(data.afkChannel);