diff options
| author | Devon R <[email protected]> | 2018-12-22 21:52:40 +0900 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-01-28 22:22:44 -0500 |
| commit | e1c94a3b1c343acbc716e507f84a98bf0e175b0d (patch) | |
| tree | 64d4b8f71b7295ea3ca6a3a7f73c0e277e0f1dca | |
| parent | Change Greedy behaviour slightly during conversion errors. (diff) | |
| download | discord.py-e1c94a3b1c343acbc716e507f84a98bf0e175b0d.tar.xz discord.py-e1c94a3b1c343acbc716e507f84a98bf0e175b0d.zip | |
Do None instead of falsy checks on Command attributes
| -rw-r--r-- | discord/ext/commands/core.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 89ca1acf..830eef1a 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -718,9 +718,9 @@ class Command: If that lookup leads to an empty string then the first line of the :attr:`help` attribute is used instead. """ - if self.brief: + if self.brief is not None: return self.brief - if self.help: + if self.help is not None: return self.help.split('\n', 1)[0] return '' @@ -739,7 +739,7 @@ class Command: name = self.name if not parent else parent + ' ' + self.name result.append(name) - if self.usage: + if self.usage is not None: result.append(self.usage) return ' '.join(result) |