aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/guild_id.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-01 06:53:46 +0200
committeracdenisSK <[email protected]>2017-08-01 06:53:46 +0200
commit25d49316133e2a8b7c4b26d3b6a44efdf5ad8834 (patch)
tree1a313f96374118bed3da5aeea5744106b9509c88 /src/model/guild/guild_id.rs
parentRemove the `ext` module and remove a match (diff)
downloadserenity-25d49316133e2a8b7c4b26d3b6a44efdf5ad8834.tar.xz
serenity-25d49316133e2a8b7c4b26d3b6a44efdf5ad8834.zip
Provide the input and limit back to the user, and do some consistencies
Diffstat (limited to 'src/model/guild/guild_id.rs')
-rw-r--r--src/model/guild/guild_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs
index 08fd1a1..a199331 100644
--- a/src/model/guild/guild_id.rs
+++ b/src/model/guild/guild_id.rs
@@ -54,7 +54,7 @@ impl GuildId {
let reason = ban_options.reason();
if reason.len() > 512 {
- return Err(Error::ExceededLimit);
+ return Err(Error::ExceededLimit(reason.to_string(), 512));
}
http::ban_user(self.0, user.into().0, dmd, &*reason)