diff options
| author | Maiddog <[email protected]> | 2017-08-26 17:55:43 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-27 00:55:43 +0200 |
| commit | 3e0b1032d80a1847558a752e8316d97f9ae58f04 (patch) | |
| tree | ca65390091cb3c0ab98b6497a1447ba69df3d20d /src/utils | |
| parent | Use `$crate` for `Args` (diff) | |
| download | serenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.tar.xz serenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.zip | |
Add ability to play DCA and Opus files. (#148)
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/message_builder.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs index 2f714ec..8f13db2 100644 --- a/src/utils/message_builder.rs +++ b/src/utils/message_builder.rs @@ -852,11 +852,8 @@ impl Content { pub fn to_string(&self) -> String { let capacity = self.inner.len() + if self.bold { 4 } else { 0 } + if self.italic { 2 } else { 0 } + - if self.strikethrough { 4 } else { 0 } + if self.underline { - 4 - } else { - 0 - } + if self.code { 2 } else { 0 }; + if self.strikethrough { 4 } else { 0 } + + if self.underline { 4 } else { 0 } + if self.code { 2 } else { 0 }; let mut new_str = String::with_capacity(capacity); if self.bold { |