feat(Guild): add fetchBan method (#3726)

* Add error for not resolving ID to fetch ban

* Add Guild#fetchBan

* add missing !

* typings

* lint fixes

* add jsdoc description
This commit is contained in:
Sugden
2020-01-24 14:29:53 +00:00
committed by SpaceEEC
parent 63293fe14d
commit c779fe3670
3 changed files with 17 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ const Messages = {
SPLIT_MAX_LEN: 'Chunk exceeds the max length and contains no split characters.',
BAN_RESOLVE_ID: (ban = false) => `Couldn't resolve the user ID to ${ban ? 'ban' : 'unban'}.`,
FETCH_BAN_RESOLVE_ID: 'Couldn\'t resolve the user ID to fetch the ban.',
PRUNE_DAYS_TYPE: 'Days must be a number',