diff options
| author | Zeyla Hellyer <[email protected]> | 2017-10-22 18:01:42 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-22 18:01:42 -0700 |
| commit | b328b3e09b0095abb54530dc4d50db6b4e3e1779 (patch) | |
| tree | 9af675bd9a608205dd2c29975038822327601a22 /src/cache | |
| parent | Remove setting of the afk field in shards (diff) | |
| download | serenity-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/cache')
| -rw-r--r-- | src/cache/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 238ca97..f9beaee 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -178,7 +178,7 @@ impl Cache { /// struct Handler; /// /// impl EventHandler for Handler { - /// fn on_ready(&self, ctx: Context, _: Ready) { + /// fn ready(&self, ctx: Context, _: Ready) { /// // Wait some time for guilds to be received. /// // /// // You should keep track of this in a better fashion by tracking how @@ -261,7 +261,7 @@ impl Cache { /// /// struct Handler; /// impl EventHandler for Handler { - /// fn on_ready(&self, _: Context, _: Ready) { + /// fn ready(&self, _: Context, _: Ready) { /// println!("Guilds in the Cache: {:?}", CACHE.read().all_guilds()); /// } /// } @@ -369,7 +369,7 @@ impl Cache { /// struct Handler; /// /// impl EventHandler for Handler { - /// fn on_message(&self, ctx: Context, message: Message) { + /// fn message(&self, ctx: Context, message: Message) { /// let cache = CACHE.read(); /// /// let channel = match cache.guild_channel(message.channel_id) { |