api: add pagination for guilds

start adding apiMessages

add apiMessages lib with tests

use apiMessage and fix tests

fix content tests

guilds pagination: add api docs

guilds pagination: improve api docs
This commit is contained in:
Matteo Pagliazzi
2017-03-10 14:14:42 +01:00
parent 767763fbf6
commit 939712ad1f
9 changed files with 140 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ function t (stringName) {
try {
return template(string)(clonedVars);
} catch (_error) {
return 'Error processing the string. Please see Help > Report a Bug.';
return `Error processing the string "${stringName}". Please see Help > Report a Bug.`;
}
} else {
let stringNotFound;
@@ -57,7 +57,7 @@ function t (stringName) {
string: stringName,
});
} catch (_error) {
return 'Error processing the string. Please see Help > Report a Bug.';
return 'Error processing the string "stringNotFound". Please see Help > Report a Bug.';
}
}
}