aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/guild_channel.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/channel/guild_channel.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/channel/guild_channel.rs')
-rw-r--r--src/model/channel/guild_channel.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index 90bb926..dacbfac 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -431,7 +431,7 @@ impl GuildChannel {
/// use serenity::CACHE;
///
/// impl EventHandler for Handler {
- /// fn on_message(&self, _: Context, msg: Message) {
+ /// fn message(&self, _: Context, msg: Message) {
/// let channel = match CACHE.read().guild_channel(msg.channel_id) {
/// Some(channel) => channel,
/// None => return,
@@ -459,7 +459,7 @@ impl GuildChannel {
/// struct Handler;
///
/// impl EventHandler for Handler {
- /// fn on_message(&self, _: Context, msg: Message) {
+ /// fn message(&self, _: Context, msg: Message) {
/// let channel = match CACHE.read().guild_channel(msg.channel_id) {
/// Some(channel) => channel,
/// None => return,