aboutsummaryrefslogtreecommitdiff
path: root/src/model/error.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-10-22 18:01:42 -0700
committerZeyla Hellyer <[email protected]>2017-10-22 18:01:42 -0700
commitb328b3e09b0095abb54530dc4d50db6b4e3e1779 (patch)
tree9af675bd9a608205dd2c29975038822327601a22 /src/model/error.rs
parentRemove setting of the afk field in shards (diff)
downloadserenity-b328b3e09b0095abb54530dc4d50db6b4e3e1779.tar.xz
serenity-b328b3e09b0095abb54530dc4d50db6b4e3e1779.zip
Remove `on_` prefix to EventHandler tymethods
It was voted that the `on_` prefix is unnecessary, so these have been dropped.
Diffstat (limited to 'src/model/error.rs')
-rw-r--r--src/model/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/error.rs b/src/model/error.rs
index fa24272..a66095a 100644
--- a/src/model/error.rs
+++ b/src/model/error.rs
@@ -27,7 +27,7 @@ use super::Permissions;
/// struct Handler;
///
/// impl EventHandler for Handler {
-/// fn on_guild_ban_removal(&self, context: Context, guild_id: GuildId, user: User) {
+/// fn guild_ban_removal(&self, context: Context, guild_id: GuildId, user: User) {
/// // If the user has an even discriminator, don't re-ban them.
/// if user.discriminator % 2 == 0 {
/// return;