aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild.rs
diff options
context:
space:
mode:
authorIllia <[email protected]>2016-12-06 23:51:42 +0200
committerzeyla <[email protected]>2016-12-06 13:51:42 -0800
commit13de5c2e50410c3a68435dc774537b490bb7115c (patch)
tree798c633e9e06e520083b29fa4417f089f476d0e0 /src/model/guild.rs
parentFix changelog header (diff)
downloadserenity-13de5c2e50410c3a68435dc774537b490bb7115c.tar.xz
serenity-13de5c2e50410c3a68435dc774537b490bb7115c.zip
Improve Mentions, fix MessageBuilder
Remove the obsolete Mention struct as well as related methods, improve the way mentioning works, fix the message builder, add a test for all this.
Diffstat (limited to 'src/model/guild.rs')
-rw-r--r--src/model/guild.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/model/guild.rs b/src/model/guild.rs
index 2b5fbee..f11cc80 100644
--- a/src/model/guild.rs
+++ b/src/model/guild.rs
@@ -1102,11 +1102,6 @@ impl Role {
self.permissions.contains(permissions)
}
}
-
- /// Return a `Mention` which will ping members of the role.
- pub fn mention(&self) -> Mention {
- self.id.mention()
- }
}
impl fmt::Display for Role {