diff options
| author | Lake Lezz <[email protected]> | 2018-09-18 15:49:47 +0200 |
|---|---|---|
| committer | Ken Swenson <[email protected]> | 2018-11-06 20:37:37 -0500 |
| commit | 940ee96f42021dd4484c0380860c9bb597d4b00a (patch) | |
| tree | c23b29fc87da05e9ab46c94a240f55ea6a3e61b0 /src | |
| parent | Update parking_lot to 0.6, multipart 0.15 (#378) (diff) | |
| download | serenity-940ee96f42021dd4484c0380860c9bb597d4b00a.tar.xz serenity-940ee96f42021dd4484c0380860c9bb597d4b00a.zip | |
Make sure `delimiter` clears current and default delimiters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/framework/standard/configuration.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/framework/standard/configuration.rs b/src/framework/standard/configuration.rs index a8ef075..3465cd6 100644 --- a/src/framework/standard/configuration.rs +++ b/src/framework/standard/configuration.rs @@ -444,7 +444,7 @@ impl Configuration { self } - /// Sets a delimiter to be used when splitting the content after a command. + /// Sets a single delimiter to be used when splitting the content after a command. /// /// **Note**: Defaults to a vector with a single element of `" "`. /// @@ -465,6 +465,7 @@ impl Configuration { /// .delimiter(", "))); /// ``` pub fn delimiter(mut self, delimiter: &str) -> Self { + self.delimiters.clear(); self.delimiters.push(delimiter.to_string()); self |