diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-05 18:03:04 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-05 18:03:04 +0200 |
| commit | a5bd191b194ca97afd777a4bb523981e4855df92 (patch) | |
| tree | 8242a790df39813187b8ba84d5985e90620a0890 /commands | |
| parent | 0e5a0b876aa36786430d313f8ded843aa849eb00 (diff) | |
| download | discordbot-a5bd191b194ca97afd777a4bb523981e4855df92.tar.gz discordbot-a5bd191b194ca97afd777a4bb523981e4855df92.zip | |
refactor, fix caching
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/vainsocial/guild_add.js | 5 | ||||
| -rw-r--r-- | commands/vainsocial/guild_view.js | 2 |
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; |
