diff options
| author | Austin Hellyer <[email protected]> | 2016-11-10 17:09:39 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-10 17:09:39 -0800 |
| commit | fd60e95d75766202053245f0a95eae5c1c6f98db (patch) | |
| tree | cd39fe3c39da795297a82d6fb4178d43a6a18010 /src | |
| parent | Fix some clippy lints (diff) | |
| download | serenity-fd60e95d75766202053245f0a95eae5c1c6f98db.tar.xz serenity-fd60e95d75766202053245f0a95eae5c1c6f98db.zip | |
Fix leave_guild endpoint
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/http/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/http/mod.rs b/src/client/http/mod.rs index 03709d1..559cc66 100644 --- a/src/client/http/mod.rs +++ b/src/client/http/mod.rs @@ -977,9 +977,9 @@ pub fn leave_group(guild_id: u64) -> Result<Group> { } pub fn leave_guild(guild_id: u64) -> Result<Guild> { - let response = request!(Route::GuildsId(guild_id), + let response = request!(Route::UsersMeGuildsId, delete, - "/guilds/{}", + "/users/@me/guilds/{}", guild_id); Guild::decode(try!(serde_json::from_reader(response))) |