aboutsummaryrefslogtreecommitdiff
path: root/src/utils/colour.rs
diff options
context:
space:
mode:
authorMishio595 <[email protected]>2018-07-12 11:35:39 -0600
committerMishio595 <[email protected]>2018-07-12 11:35:39 -0600
commit026a37ffe12096a1da263b028df48a8d2909baa3 (patch)
tree1d1bf8f9c505408f13b7fd6f877bcf3fd15fa43c /src/utils/colour.rs
parentAdd 3rd param to MessageUpdateEvent Option that contains the old message if f... (diff)
downloadserenity-026a37ffe12096a1da263b028df48a8d2909baa3.tar.xz
serenity-026a37ffe12096a1da263b028df48a8d2909baa3.zip
Add checks for groups
Diffstat (limited to 'src/utils/colour.rs')
-rw-r--r--src/utils/colour.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/utils/colour.rs b/src/utils/colour.rs
index cac3d46..3b31572 100644
--- a/src/utils/colour.rs
+++ b/src/utils/colour.rs
@@ -190,20 +190,6 @@ impl Colour {
/// [`g`]: #method.g
/// [`b`]: #method.b
pub fn tuple(&self) -> (u8, u8, u8) { (self.r(), self.g(), self.b()) }
-
- /// Returns a hexadecimal string of this Colour.
- ///
- /// This is equivalent to passing the integer value through `std::fmt::UpperHex` with 0 padding
- /// and 6 width
- ///
- /// # Examples
- ///
- /// ```rust
- /// use serenity::utils::Colour;
- ///
- /// assert_eq!(Colour::new(6573123).hex(), String::from("644C43"));
- /// ```
- pub fn hex(&self) -> String { format!("{:06X}", self.0) }
}
impl From<i32> for Colour {