feat(constants): add verificationLevels (#3369)

* add Util.parseVerification()

* Made the code much cleaner.

* Removed method and created constant.

* Lint!

* refactor(constants): capitalize VerficiationLevels and add a typedef

* Changed VerificationLevels typedef to singular.

Co-Authored-By: Will Nelson <will@wnelson.xyz>
This commit is contained in:
newt
2019-09-10 15:12:27 +01:00
committed by Crawl
parent b0047c424b
commit 37ecf7b826

View File

@@ -467,6 +467,23 @@ exports.Colors = {
NOT_QUITE_BLACK: 0x23272A,
};
/**
* The value set for the verification levels for a guild:
* * None
* * Low
* * Medium
* * (╯°□°)╯︵ ┻━┻
* * ┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻
* @typedef {string} VerificationLevel
*/
exports.VerificationLevels = [
'None',
'Low',
'Medium',
'(╯°□°)╯︵ ┻━┻',
'┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻',
];
/**
* An error encountered while performing an API request. Here are the potential errors:
* * UNKNOWN_ACCOUNT