aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_help_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/standard/create_help_command.rs')
-rw-r--r--src/framework/standard/create_help_command.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/framework/standard/create_help_command.rs b/src/framework/standard/create_help_command.rs
index 7e4c338..aba38cc 100644
--- a/src/framework/standard/create_help_command.rs
+++ b/src/framework/standard/create_help_command.rs
@@ -177,12 +177,13 @@ impl CreateHelpCommand {
pub(crate) fn finish(self) -> Arc<Help> {
if self.0.striked_commands_tip == Some(String::new()) {
let mut strike_text = String::from("~~`Striked commands`~~ are unavailable because they");
- let mut concat_with_comma = false;
- if self.0.lacking_permissions == HelpBehaviour::Strike {
+ let mut concat_with_comma = if self.0.lacking_permissions == HelpBehaviour::Strike {
let _ = write!(strike_text, " require permissions");
- concat_with_comma = true;
- }
+ true
+ } else {
+ false
+ };
if self.0.lacking_role == HelpBehaviour::Strike {