summaryrefslogtreecommitdiff
path: root/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'api.js')
-rw-r--r--api.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/api.js b/api.js
index 66d52da..12f58c3 100644
--- a/api.js
+++ b/api.js
@@ -226,6 +226,12 @@ module.exports.getMatch = async (id) => {
module.exports.getGuild = async (token) => {
return await api.getFE("/guild", { user_token: token }, 60, "guild+" + token);
}
+
+// return a guild
+module.exports.getGuildMembersByGuildName = async (name) => {
+ // TODO caching
+ return await api.getFE("/guild/" + name + "/members", { }, 0);
+}
// TODO! cache guilds by guild id, not by user token
// add user to guild