summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/vainsocial/guild_add.js5
-rw-r--r--commands/vainsocial/guild_view.js2
2 files changed, 2 insertions, 5 deletions
diff --git a/commands/vainsocial/guild_add.js b/commands/vainsocial/guild_add.js
index 8dc2ab8..b4aa864 100644
--- a/commands/vainsocial/guild_add.js
+++ b/commands/vainsocial/guild_add.js
@@ -62,10 +62,7 @@ Register IGNs to your Guild.
}
// all good, register to self guild
- await api.post("/guild/members", {
- user_token: msg.author.id,
- member_name: user
- });
+ await api.addToGuild(msg.author.id, user);
await progress(`Added ${user}.`, true);
});
await progress(oneLine`
diff --git a/commands/vainsocial/guild_view.js b/commands/vainsocial/guild_view.js
index e692402..835b717 100644
--- a/commands/vainsocial/guild_view.js
+++ b/commands/vainsocial/guild_view.js
@@ -34,7 +34,7 @@ Show a summary of your Guild.
async run(msg, args) {
util.trackAction(msg, "vainsocial-guild-view");
// get this user's guild
- const guild = await api.get("/guild", { user_token: msg.author.id });
+ const guild = await api.getGuild(msg.author.id);
if (guild == undefined) {
await msg.reply("You are not registered in any guilds.");
return;