diff options
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) { |