Skip to content

Commit 7ffb2c7

Browse files
committed
Fixed error can be present when description is None
1 parent c94ba0b commit 7ffb2c7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
__pycache__
33
test.py
44
test2.py
5-
docs/_build
5+
docs/_build
6+
slash.log

discord_slash/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def add_slash_command(self,
103103
name = name.lower()
104104
_cmd = {
105105
"func": cmd,
106-
"description": description,
106+
"description": description if description else "No description.",
107107
"auto_convert": auto_convert,
108108
"guild_ids": guild_ids,
109109
"api_options": options if options else [],

0 commit comments

Comments
 (0)