aboutsummaryrefslogtreecommitdiff
path: root/src/client/rest
diff options
context:
space:
mode:
authorabalabahaha <[email protected]>2016-12-01 10:02:39 +0900
committerAustin Hellyer <[email protected]>2016-11-30 17:38:21 -0800
commit7f041791aa95e38a0cacd2ab64f0423524c60052 (patch)
treef6b22bfaf7b67f743282f2e3a6414f2670eac96e /src/client/rest
parentAdd blitz blue color (diff)
downloadserenity-7f041791aa95e38a0cacd2ab64f0423524c60052.tar.xz
serenity-7f041791aa95e38a0cacd2ab64f0423524c60052.zip
Fix start_integration_sync
Diffstat (limited to 'src/client/rest')
-rw-r--r--src/client/rest/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rest/mod.rs b/src/client/rest/mod.rs
index 8cdb5ac..da16671 100644
--- a/src/client/rest/mod.rs
+++ b/src/client/rest/mod.rs
@@ -1467,12 +1467,12 @@ pub fn start_guild_prune(guild_id: u64, map: Value)
GuildPrune::decode(try!(serde_json::from_reader(response)))
}
-/// Adds an integration to a guild.
+/// Starts syncing an integration with a guild.
pub fn start_integration_sync(guild_id: u64, integration_id: u64)
-> Result<()> {
verify(204, request!(Route::GuildsIdIntegrationsIdSync(guild_id),
post,
- "/guilds/{}/integrations/{}",
+ "/guilds/{}/integrations/{}/sync",
guild_id,
integration_id))
}